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 zuo
Recipients ezio.melotti, flox, mark.dickinson, vstinner, zuo
Date 2010-01-26.19:16:08
SpamBayes Score 9.2694626e-07
Marked as misclassified No
Message-id <1264533369.68.0.205193315735.issue7788@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-01-26 19:16:09zuosetrecipients: + zuo, mark.dickinson, vstinner, ezio.melotti, flox
2010-01-26 19:16:09zuosetmessageid: <1264533369.68.0.205193315735.issue7788@psf.upfronthosting.co.za>
2010-01-26 19:16:08zuolinkissue7788 messages
2010-01-26 19:16:08zuocreate