Re: [Numpy-discussion] vectorize doesn't like functools.partial

2010-09-08 Thread Neal Becker
josef.p...@gmail.com wrote: > On Wed, Sep 8, 2010 at 10:53 AM, Neal Becker wrote: >> josef.p...@gmail.com wrote: >> >>> On Wed, Sep 8, 2010 at 7:44 AM, Neal Becker wrote: If I try to use vectorize on the result of functools.partial, I seem to get: ValueError: failed to deter

Re: [Numpy-discussion] vectorize doesn't like functools.partial

2010-09-08 Thread josef . pktd
On Wed, Sep 8, 2010 at 10:53 AM, Neal Becker wrote: > josef.p...@gmail.com wrote: > >> On Wed, Sep 8, 2010 at 7:44 AM, Neal Becker wrote: >>> If I  try to use vectorize on the result of functools.partial, I seem to >>> get: >>> >>> ValueError: failed to determine the number of arguments for >>>

Re: [Numpy-discussion] vectorize doesn't like functools.partial

2010-09-08 Thread Neal Becker
josef.p...@gmail.com wrote: > On Wed, Sep 8, 2010 at 7:44 AM, Neal Becker wrote: >> If I try to use vectorize on the result of functools.partial, I seem to >> get: >> >> ValueError: failed to determine the number of arguments for >> >> >> Anything I can do about it? > > Set .nin (attribute of

Re: [Numpy-discussion] vectorize doesn't like functools.partial

2010-09-08 Thread josef . pktd
On Wed, Sep 8, 2010 at 7:44 AM, Neal Becker wrote: > If I  try to use vectorize on the result of functools.partial, I seem to > get: > > ValueError: failed to determine the number of arguments for > > > Anything I can do about it? Set .nin (attribute of vectorized function, I think) directly wit

[Numpy-discussion] vectorize doesn't like functools.partial

2010-09-08 Thread Neal Becker
If I try to use vectorize on the result of functools.partial, I seem to get: ValueError: failed to determine the number of arguments for Anything I can do about it? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/