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

Difference between benedict and dict when using tuple[int, ...] as keys. #432

Open
burakomurai opened this issue Aug 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@burakomurai
Copy link

burakomurai commented Aug 16, 2024

Python version
Python 3.11.9

Package version
python-benedict==0.33.2

Current behavior (bug description)
Difference between dict() and benedict() with a specific case.

d1 = {}
d2 = benedict.benedict()

d1[(0, 0, 1)] = "a"
d2[(0, 0, 1)] = "a"

print(d1, "\n", d2)

{(0, 0, 1): 'a'}

{0: [[None, 'a']]}

Expected behavior
Same as the dict() output.

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
@burakomurai burakomurai added the bug Something isn't working label Aug 16, 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

2 participants