[Python-ideas] itertools.documentation.ncycles is a bit of a sore thumb

Benjamin Peterson benjamin at python.org
Wed Aug 3 16:02:49 CEST 2011

Julian Berman <julian at ...> writes:

> The top of the recipe section in the itertools documentation says:
> "The superior memory performance is kept by processing elements one at a time
rather than bringing the
> whole iterable into memory all at once."
> but itertools.ncycles doesn't really. It's one line, so I'll inline it here:

In this case, I think it means that iterable*n is never held all in memory.

More information about the Python-ideas mailing list