PEP 284, Integer for-loops

Courageous jkraska at san.rr.com
Thu Mar 7 17:59:51 EST 2002


>This syntax could easily be extend, to allow a step other than 1:
>
>   for i = 1 to 10 step 3:

Or:

	for i = 10 to 1 step -1:

Further, in ranges which step from high to low, the step can be
inferred.

C//




More information about the Python-list mailing list