-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Python version
3.7.4
Package version
0.14.0
Current behavior (bug description)
I tried the following:
from benedict import benedict
key = ['1', '2']
dictionary = {'1' : {'2' : 'two'}}
d = benedict(dictionary)
print(d.get(key))
key = ['1']
dictionary = {'1' : 'one'}
d = benedict(dictionary)
print(d.get(key))
'two' will be printed but 'one' not. I get an type error: TypeError: unhashable type: 'list'
Expected behavior
I expected that the last command will print 'one'.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working