Pyrex: step in for loop

Luis P. Mendes luis_lupe2XXX at netvisaoXXX.pt
Thu May 26 17:37:23 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm trying to improve speed in a module and substituted the pythonic
'for in range()' for 'for i from min < i < max:'

But, I need to define a step for the i variable.  How can I do it?

for example, how do I iterate through 80000 to 140000 with step 10000?

Luis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFClkGTHn4UHCY8rB8RAgZXAJ0XPg9IH0OU329FVX3o14QjNFXuXgCgm+UR
O0GpXmDpQr7Y7TgMsmVvZ6s=
=zZnm
-----END PGP SIGNATURE-----



More information about the Python-list mailing list