Message408616
The OrderedDict iterator caches a di_result tuple for use with iter(od.items()). It's *supposed* to only do that for the items() case, but the code does
if (kind & (_odict_ITER_KEYS | _odict_ITER_VALUES))
to test for this case. This is the wrong test. It should be
if ((kind & _odict_ITER_KEYS) && (kind &_odict_ITER_VALUES))
The current test allocates di_result for key and value iterators as well as items iterators. |
|
Date |
User |
Action |
Args |
2021-12-15 16:48:00 | Kevin Shweh | set | recipients:
+ Kevin Shweh |
2021-12-15 16:48:00 | Kevin Shweh | set | messageid: <1639586880.61.0.695571105446.issue46085@roundup.psfhosted.org> |
2021-12-15 16:48:00 | Kevin Shweh | link | issue46085 messages |
2021-12-15 16:48:00 | Kevin Shweh | create | |
|