[issue38525] Strange reversed dict behavior

Dong-hee Na report at bugs.python.org
Sat Oct 19 10:03:37 EDT 2019


Dong-hee Na <donghee.na92 at gmail.com> added the comment:

>>> reversed({}.items())
<dict_reverseitemiterator object at 0x106a2bc50>
>>> a = reversed({}.items())
>>> next(a)
Assertion failed: (value != NULL), function dictreviter_iternext, file Objects/dictobject.c, line 3834.
[1]    4106 abort      ./python.exe

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38525>
_______________________________________


More information about the Python-bugs-list mailing list