This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients rhettinger, serhiy.storchaka
Date 2016-03-06.11:45:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457264726.34.0.955181545994.issue26491@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-03-06 11:45:26serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2016-03-06 11:45:26serhiy.storchakasetmessageid: <1457264726.34.0.955181545994.issue26491@psf.upfronthosting.co.za>
2016-03-06 11:45:26serhiy.storchakalinkissue26491 messages
2016-03-06 11:45:26serhiy.storchakacreate