This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Sumudu.Fernando, eric.araujo, falsetru, rhettinger, terry.reedy
Date 2012-01-18.22:55:13
SpamBayes Score 0.0010564595
Marked as misclassified No
Message-id <1326927313.91.0.741022863307.issue10109@psf.upfronthosting.co.za>
In-reply-to
Content
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'.
History
Date User Action Args
2012-01-18 22:55:13terry.reedysetrecipients: + terry.reedy, rhettinger, falsetru, eric.araujo, Sumudu.Fernando
2012-01-18 22:55:13terry.reedysetmessageid: <1326927313.91.0.741022863307.issue10109@psf.upfronthosting.co.za>
2012-01-18 22:55:13terry.reedylinkissue10109 messages
2012-01-18 22:55:13terry.reedycreate