A Universe Set

Jorgen Grahn grahn+nntp at snipabacken.dyndns.org
Thu Oct 5 07:12:49 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()?

Oops! You're right. The itertools documentation even refers to the SML and
Haskell languages.  And it contains itertools.izip(), another thing on my
wish list.

I have reasons to be Python 2.2 compatible, so I haven't really looked
through the nice things in 2.3 and up (generators are in __future__ in 2.2).
Stupid of me to overlook itertools, which I've read about here many times.

/Jorgen

-- 
  // Jorgen Grahn <grahn@        Ph'nglui mglw'nafh Cthulhu
\X/     snipabacken.dyndns.org>  R'lyeh wgah'nagl fhtagn!



More information about the Python-list mailing list