[issue6305] islice doesn't accept large stop values
Raymond Hettinger
report at bugs.python.org
Wed Apr 16 21:45:38 CEST 2014
Raymond Hettinger added the comment:
Yes, you should add a fastpath and a slow path. Take a look at itertools.count() or builtins.enumerate() to see how to do it.
This is a bit tricky to switch between modes, so you will need a thorough set of test cases.
----------
versions: +Python 3.5 -Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6305>
_______________________________________
More information about the Python-bugs-list
mailing list