PEP 276 Simple Iterator for ints (fwd)
Gareth McCaughan
Gareth.McCaughan at pobox.com
Tue Nov 27 16:41:48 EST 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:
> ...
+1 if it also groks "for 0 < i <= 5" and so on.
--
Gareth McCaughan Gareth.McCaughan at pobox.com
.sig under construc
More information about the Python-list
mailing list