[New-bugs-announce] [issue6305] islice doesn't accept large stop values
Thomas Guest
report at bugs.python.org
Thu Jun 18 09:14:23 CEST 2009
New submission from Thomas Guest <tag at wordaligned.org>:
Python 3.0 (r30:67503, Jan 7 2009, 16:22:01)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
>>> from itertools import islice, count
>>> islice(count(), (1<<31) - 1)
<itertools.islice object at 0x63a0c0>
>>> islice(count(), (1<<31))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Stop argument for islice() must be a non-negative integer or
None.
----------
messages: 89494
nosy: thomasguest
severity: normal
status: open
title: islice doesn't accept large stop values
type: behavior
versions: Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6305>
_______________________________________
More information about the New-bugs-announce
mailing list