Does anyone else use this little idiom?
Ben Finney
bignose+hates-spam at benfinney.id.au
Sat Feb 2 23:13:14 EST 2008
"Gabriel Genellina" <gagsl-py2 at yahoo.com.ar> writes:
> Should be `for _ in xrange(n)` to match the Ruby example. Both
> iterate n times.
Only until Python 3.0, since the 'xrange' implementation will become
'range' at that time.
<URL:http://wiki.python.org/moin/Py3kDeprecated#head-343618ffa0887790ed12c3f9cf278cd7ca7eef51-2>
--
\ "Prediction is very difficult, especially of the future." |
`\ —Niels Bohr |
_o__) |
Ben Finney
More information about the Python-list
mailing list