New submission from Serhiy Storchaka:

I don't see possible bug here.

The first item of the tuple is always int or None. It's decrefing don't trigger 
executing user code.

The second item of the tuple is decrefed when the refcount of the tuple is 2 
and we own all references. The code triggered by decrefing the old item can't 
use the tuple (since its refcount is not 1 now), nor free the new index or new 
item (since we take the ownership of them).

I think this patch is not needed.

----------

_______________________________________
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