Message271058
Perhaps we should add a test for the __length_hint__() overflow to tuple_and_list.patch:
>>> a = [1,2,3,4]
>>> import sys
>>> class B:
... def __iter__(s): return s
... def __next__(s): raise StopIteration()
... def __length_hint__(s): return sys.maxsize
...
>>> a.extend(B())
Objects/listobject.c:844:8: runtime error: signed integer overflow: 4 + 2147483647 cannot be represented in type 'int'
array-size.patch fixes the ctypes array size overflow (including a test). |
|
Date |
User |
Action |
Args |
2016-07-23 05:09:51 | martin.panter | set | recipients:
+ martin.panter, loewis, nnorwitz, gregory.p.smith, jcea, mark.dickinson, pitrou, vstinner, christian.heimes, alexandre.vassalotti, donmez, matejcik, jwilk, alex, dmalcolm, python-dev, deadshort, serhiy.storchaka, ztane, fweimer, Jeffrey.Walton, xiang.zhang |
2016-07-23 05:09:51 | martin.panter | set | messageid: <1469250591.29.0.335961253279.issue1621@psf.upfronthosting.co.za> |
2016-07-23 05:09:51 | martin.panter | link | issue1621 messages |
2016-07-23 05:09:50 | martin.panter | create | |
|