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

David W. Lambert report at bugs.python.org
Wed Jan 7 21:58:16 CET 2009


David W. Lambert <lambertdw at corning.com> added the comment:

Mathematica returns an empty list.

In[1]:= Permutations[{1,2},{1}]

Out[1]= {{1}, {2}}

In[2]:= Permutations[{1,2},{4}]

Out[2]= {}

In[3]:=

----------
nosy: +LambertDW

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


More information about the Python-bugs-list mailing list