PEP 276 Simple Iterator for ints (fwd)

James_Althoff at James_Althoff at
Tue Nov 27 19:27:31 CET 2001

Greg Ewing wrote:
>While trying to think of a range syntax that looks
>unambiguously half-open without clashing with list
>or tuple constructors, the following blindingly
>obvious solution occurred to me:
>  for 0 <= i < 5:
>    ...


Since this looks like a suggestion for replacing xrange in the general
case, did you have any thoughts on how one might specify a step value?


More information about the Python-list mailing list