PEP 276 Simple Iterator for ints (fwd)
Greg Ewing
greg at cosc.canterbury.ac.nz
Wed Nov 28 18:31:18 EST 2001
Gareth McCaughan wrote:
>
> -1. The values of i/3 over that sequence are 0,1,2,3. Ick.
Sorry, stuffed it up. I meant
for 0 <= i/3 < 2:
to give 0, 3, 6, 9.
Of course, with the new-style division it should be
for 0 <= i//3 < 2:
:-)
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list