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 skrah
Recipients rhettinger, skrah
Date 2015-07-27.11:19:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437995998.57.0.192445983391.issue24735@psf.upfronthosting.co.za>
In-reply-to
Content
There's a corner case in cwr_next(), where the pool size is zero
but pool[0] is accessed:


from itertools import *
it = combinations_with_replacement([], 0)
next(it)


Patch attached.
History
Date User Action Args
2015-07-27 11:19:58skrahsetrecipients: + skrah, rhettinger
2015-07-27 11:19:58skrahsetmessageid: <1437995998.57.0.192445983391.issue24735@psf.upfronthosting.co.za>
2015-07-27 11:19:58skrahlinkissue24735 messages
2015-07-27 11:19:58skrahcreate