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 rhettinger
Recipients artem.smotrakov, rhettinger
Date 2016-08-22.01:56:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471831004.67.0.553509619219.issue27826@psf.upfronthosting.co.za>
In-reply-to
Content
> but it might be better to avoid a crash here.

I'm reluctant to introduce changes like this, especially in the middle of a loop.  This code and code like it has been nonproblematic for Python's 26 year history.  The code throughout tupleobject.c assumes well-formed tuples (for example, tuplecontains and tupleitem do not have NULL checks before dereferencing).  At some point, the C code just has to trust its own structure invariants and people who run marshal or pickle have to trust their inputs.
History
Date User Action Args
2016-08-22 01:56:44rhettingersetrecipients: + rhettinger, artem.smotrakov
2016-08-22 01:56:44rhettingersetmessageid: <1471831004.67.0.553509619219.issue27826@psf.upfronthosting.co.za>
2016-08-22 01:56:44rhettingerlinkissue27826 messages
2016-08-22 01:56:44rhettingercreate