A Universe Set

Jean-Paul Calderone exarkun at divmod.com
Wed Oct 4 11:18:16 EDT 2006


On Wed, 04 Oct 2006 11:00:28 -0400, Leif K-Brooks <eurleif at ecritters.biz> wrote:
>Jorgen Grahn wrote:
>> - infinite xrange()s
>
>itertools.count()?

Not quite:

    >>> import sys, itertools
    >>> c = itertools.count(sys.maxint)
    >>> c.next()
    2147483647
    >>> c.next()
    -2147483648
    >>> 

Jean-Paul



More information about the Python-list mailing list