Raymond Hettinger added the comment:

> 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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27826>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to