[issue7721] Code in xrange documentation does not work
Florent Xicluna
report at bugs.python.org
Sun Jan 17 00:37:37 CET 2010
Florent Xicluna <laxyf at yahoo.fr> added the comment:
Right. Insufficient test.
This snippet looks better, if we provide a replacement for 2.6.
>>> irange = lambda start, stop, step: islice(count(start), 0, stop-start, step)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7721>
_______________________________________
More information about the Python-bugs-list
mailing list