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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26491>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to