Message273325
> 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. |
|
Date |
User |
Action |
Args |
2016-08-22 01:56:44 | rhettinger | set | recipients:
+ rhettinger, artem.smotrakov |
2016-08-22 01:56:44 | rhettinger | set | messageid: <1471831004.67.0.553509619219.issue27826@psf.upfronthosting.co.za> |
2016-08-22 01:56:44 | rhettinger | link | issue27826 messages |
2016-08-22 01:56:44 | rhettinger | create | |
|