[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-07 Thread Thomas Finley
Thomas Finley added the comment: Hi Raymond, thanks for your well reasoned and thorough reply. Just a couple small thoughts... I'll borrow your numbers if you don't mind. 1. I'd ask you to discount this argument. There are many situations in the Python library where em

[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-03 Thread Thomas Finley
New submission from Thomas Finley : This is a patch for the Python 3.1 build checked out from http://svn.python.org/projects/python/branches/py3k The current behavior of itertools.combinations(iterable,r) and itertools.permutations(iterable,r) is to throw a ValueError if iterable yields fewer