[issue17930] Search not needed in combinations_with_replacement

Tim Peters report at bugs.python.org
Tue May 7 23:41:49 CEST 2013


Tim Peters added the comment:

Oops!  Last part should read

"since the indices vector is non-decreasing, if indices[j] was n-2 then indices[j-1] is also at most n-2"

That is, the instances of "r-2" in the original should have been "n-2".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17930>
_______________________________________


More information about the Python-bugs-list mailing list