Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable keylist feature? #413

Open
fabiocaccamo opened this issue May 22, 2024 Discussed in #412 · 0 comments
Open

Disable keylist feature? #413

fabiocaccamo opened this issue May 22, 2024 Discussed in #412 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@fabiocaccamo
Copy link
Owner

fabiocaccamo commented May 22, 2024

Discussed in #412

Originally posted by BearAndBunny May 22, 2024
Is it possible to disable the keylist feature?

Using tuples as keys with the usual syntax does not work:

from benedict import benedict

x = benedict()
x[("a", True)] = "test"
print(x)

x = benedict()
x.update({("a", True): "test"}) #works, but clumsy syntax
print(x)

y = dict()
y[("a", True)] = "test"
print(y)

Output:

{'a': [None, 'test']}
{('a', True): 'test'}
{('a', True): 'test'}

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@fabiocaccamo fabiocaccamo added the bug Something isn't working label May 22, 2024
@fabiocaccamo fabiocaccamo self-assigned this May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant