Message151575
Proposing an expansion of the definition of product() is a *completely* different issue from the validity of count() as an input. I answered correctly given the current definition of product(): it is not valid input. It is also not valid input to your proposed revision:
>>> tuple(itertools.cycle(enumerate(it)) for it in itertools.count())
...
TypeError: 'int' object is not iterable
-- just as I said.
If you want to propose an enhancement, either open an new, enhancement issue or post to python-ideas. Since new features can only go in 3.3+, post 3.x code, not 2.x. And please do not quibble about the difference between 'infinite' and 'too large to fit in memory'. |
|
Date |
User |
Action |
Args |
2012-01-18 22:55:13 | terry.reedy | set | recipients:
+ terry.reedy, rhettinger, falsetru, eric.araujo, Sumudu.Fernando |
2012-01-18 22:55:13 | terry.reedy | set | messageid: <1326927313.91.0.741022863307.issue10109@psf.upfronthosting.co.za> |
2012-01-18 22:55:13 | terry.reedy | link | issue10109 messages |
2012-01-18 22:55:13 | terry.reedy | create | |
|