3 Aug
2011
3 Aug
'11
2:02 p.m.
Julian Berman
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.