Message276843
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 ;-) |
|
Date |
User |
Action |
Args |
2016-09-17 20:43:38 | tim.peters | set | recipients:
+ tim.peters, rhettinger, terry.reedy, falsetru, nneonneo, eric.araujo, Sumudu.Fernando, yegle, Lucas Wiman |
2016-09-17 20:43:38 | tim.peters | set | messageid: <1474145018.39.0.160119961551.issue10109@psf.upfronthosting.co.za> |
2016-09-17 20:43:38 | tim.peters | link | issue10109 messages |
2016-09-17 20:43:38 | tim.peters | create | |
|