New PEP (281): Loop Counter Iteration with range and xrange
Magnus Lie Hetland
mlh at vier.idi.ntnu.no
Mon Feb 11 11:58:39 EST 2002
I've submitted a draft PEP describing the idea of letting range and
xrange accept sequences (or possibly, for xrange, any iterable) and
return/yield one index per element. It's closely related to PEP 212,
but instead of proposing new functions/syntax, it proposes extending
the capabilities of existing functions.
The PEP is available at:
http://www.python.org/peps/pep-0281.html
Comments are (of course) welcome.
--
Magnus Lie Hetland The Anygui Project
http://hetland.org http://anygui.org
More information about the Python-list
mailing list