Tim Peters added the comment:

I see nothing wrong with combinatorial generators materializing their inputs 
before generation.  Perhaps it should be documented clearly.  It's certainly 
not limited to `product()`.  For example,

>>> for i in itertools.combinations(itertools.count(), 2):
...     print(i)

dies with MemoryError too.  But I expected that ;-)

nosy: +tim.peters

Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to