iters on ints? (reducing the need for range/xrange)
Emile van Sebille
emile at fenx.com
Thu Nov 8 17:43:55 EST 2001
<James_Althoff at i2.com> wrote in message
news:mailman.1005256814.9657.python-list at python.org...
>
> Now that the issue of transfinite cardinals has been fully resolved, isn't
> it time for yet another unpopular-and-non-pythonic suggestion? I believe
> it is.
Are you going to suggest dropping the line ending colons?
>
> What if (in post-2.2) Python the tp_iter slot in the int type was defined
> to return an xrange-like iterator such that one could do the following:
>
oh. ;-)
> for i in 10:
> doSomething(i)
>
Sounds good.
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list