PEP 284, Integer for-loops
eppstein at ics.uci.edu
Thu Mar 7 00:35:06 CET 2002
In article <slrna8d8ej.utc.grey at teleute.dmiyu.org>,
Steve Lamb <grey at despair.dmiyu.org> wrote:
> I fail to see how it is is greader readability or understanding when the
> current method is both.
I diagree that the current method has both, or either. I don't know
about you, but I find "for x in range(n-1,-1,-1)" to be a difficult to
read and difficult to understand way of obfuscating a simple loop over
the numbers 0 to n-1 in reverse order. I think "for n > x >= 0" would
be much simpler.
More information about the Python-list