Luis P. Mendes wrote:
> 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?
If you want maximum clarity, I'd suggest using the for-loop
to iterate over a con
"Luis P. Mendes" <[EMAIL PROTECTED]> writes:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> | so it's
> |
> | for i in range(8, 14, 1): ...
> |
> |
> For what I've read, for i in range is slower than the other for
> construct used by Pyrex:
>
> for i from iMin <= i < iMax
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
| so it's
|
| for i in range(8, 14, 1): ...
|
| http://enigmail.mozdev.org
iD8DBQFClkmlHn4UHCY8rB8RAlUqAKCxSEkEKVIcoshTwmL7GQNK6d/j0wCgoC67
jOhuXQpnDt23SEAM9huKTQA=
=8XO0
-END PGP SIGNATURE-
--
http://mail.python.org/mailman/
"Luis P. Mendes" <[EMAIL PROTECTED]> writes:
> -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?
-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 8 to 14 with s