[issue26491] Defer DECREFs until enum object is in a consistent state for re-entrancy

Raymond Hettinger report at bugs.python.org
Tue Apr 12 23:18:33 EDT 2016


Raymond Hettinger added the comment:

Deferring decrefs as late as possible is a good practice, reducing the risk of bugs being introduced later.  There have been other places where there were bugs that arose due to premature decreffing.

I wrote the original code for enumerate, am the primary maintainer, and can make improvements to code organization as needed.  Unless you think this change is broken, it should stay in.

----------
status: pending -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26491>
_______________________________________


More information about the Python-bugs-list mailing list