[Python-Dev] Mathematica

Fredrik Johansson fredrik.johansson at gmail.com
Wed Jan 7 21:57:33 CET 2009


On Wed, Jan 7, 2009 at 9:48 PM, Raymond Hettinger <python at rcn.com> wrote:
> Does anyone here have access to Mathematica?
> I would like to know what it returns for:
>
> In[1]:= Permutations({a, b, c}, {5})
>
> Knowing this will help resolve a feature request
> for itertools.permutations() and friends.

I assume you mean with square brackets:

Mathematica 6.0 for Linux x86 (32-bit)
Copyright 1988-2008 Wolfram Research, Inc.

In[1]:= Permutations[{a, b, c}, {5}]

Out[1]= {}

Fredrik


More information about the Python-Dev mailing list