You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got an exception while trying the example on duplicates.
When reassigning a duplicate and after printing the duplicate, get_all_for('key') fails with
>>> d[(1, 'key')] = 123 # reassign specific duplicate
>>> d.get_all_for('key')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\Python310\lib\site-packages\vdf\vdict.py", line 190, in get_all_for
return [self[(idx, key)] for idx in _range(self.__kcount[key])]
File "C:\Program Files\Python310\lib\site-packages\vdf\vdict.py", line 190, in <listcomp>
return [self[(idx, key)] for idx in _range(self.__kcount[key])]
File "C:\Program Files\Python310\lib\site-packages\vdf\vdict.py", line 87, in __getitem__
return super(VDFDict, self).__getitem__(self._normalize_key(key))
KeyError: (2, 'key')
is it a bug or the examples are not up to date?
The text was updated successfully, but these errors were encountered:
ndojibus
changed the title
Example on readme not accurate
Exception while trying the example on readme
Jan 3, 2023
Hello
I got an exception while trying the example on duplicates.
When reassigning a duplicate and after printing the duplicate, get_all_for('key') fails with
is it a bug or the examples are not up to date?
The text was updated successfully, but these errors were encountered: