New PEP (281): Loop Counter Iteration with range and xrange

Magnus Lie Hetland mlh at
Mon Feb 11 17:58:39 CET 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:

Comments are (of course) welcome.

Magnus Lie Hetland                                  The Anygui Project                        

More information about the Python-list mailing list