[issue46085] OrderedDict iterator allocates di_result unnecessarily
Kevin Shweh
report at bugs.python.org
Thu Dec 16 14:26:11 EST 2021
Kevin Shweh <kevin.shweh at gmail.com> added the comment:
Almost - C's weird bitwise operator precedence means it has to be parenthesized as
if ((kind & _odict_ITER_ITEMS) == _odict_ITER_ITEMS)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46085>
_______________________________________
More information about the Python-bugs-list
mailing list