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 rhettinger
Recipients ezio.melotti, konryd, rhettinger
Date 2009-01-25.07:30:55
SpamBayes Score 9.7667844e-08
Marked as misclassified No
Message-id <1232868657.2.0.405510640551.issue5048@psf.upfronthosting.co.za>
In-reply-to
Content
Guido disallowed returning a len method on iterators.  He expected
bool(it) to be False.

The recipes section of the itertools docs has code for
combinations_with_replacement().  It was not included originally because
it was unclear whether there was actually a need to generate them. 
Possibly, people are mainly interested in knowing how many there are but
having no need to actually enumerate them.  That being said, if I get
more requests or if some real world use cases arise, I would be happy to
C the recipe and add it in Py2.7.
History
Date User Action Args
2009-01-25 07:30:57rhettingersetrecipients: + rhettinger, ezio.melotti, konryd
2009-01-25 07:30:57rhettingersetmessageid: <1232868657.2.0.405510640551.issue5048@psf.upfronthosting.co.za>
2009-01-25 07:30:56rhettingerlinkissue5048 messages
2009-01-25 07:30:55rhettingercreate