count items in generator

Delaney, Timothy (Tim) tdelaney at avaya.com
Sun May 14 19:28:00 EDT 2006


Paul Rubin wrote:

> That's only because itertools.count itself uses a C int instead of a
> long.

True. In either case, the effect is the same in terms of whether
len(itertools.count()) will ever terminate.

Tim Delaney



More information about the Python-list mailing list