Message98356
Interesting that in Py2.5...
>>> del range(10)[::maxint]
...this causes segfault but in Py2.6 is ok, as well as in Py3.0 (with maxsize insetad of maxint). (That's why I didn't noticed that it concerns newer version than 2.5, and marked only 2.5).
But, as Ezio noted, e.g.:
>>> del range(10)[5::maxint]
...crashes all of them, e.g:
Python 3.0.1+ (r301:69556, Apr 15 2009, 15:59:22)
[GCC 4.3.3] on linux2
>>> from sys import maxsize
>>> del list(range(10))[::maxsize] # <- OK
>>> del list(range(10))[5::maxsize]
Segmentation fault |
|
Date |
User |
Action |
Args |
2010-01-26 19:16:09 | zuo | set | recipients:
+ zuo, mark.dickinson, vstinner, ezio.melotti, flox |
2010-01-26 19:16:09 | zuo | set | messageid: <1264533369.68.0.205193315735.issue7788@psf.upfronthosting.co.za> |
2010-01-26 19:16:08 | zuo | link | issue7788 messages |
2010-01-26 19:16:08 | zuo | create | |
|