Skip to content

Fix get bug -- tuple index handling #11

@ericpan64

Description

@ericpan64

Describe the bug

Seems like indexing into tuples (or things index-able besides lists) doesn't happen and silently errors

How To Reproduce

from pydian import get

tup = ('a', 'b')
some_dict = { 'tup_key': tup }
print(get(some_dict, 'tup_key[0]'))  # Expect `'a'`, got `None`
print(get(some_dict, 'tup_key'))  # Correctly gets tuple

Expected behavior

Index into the tuple

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions