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

josef.pktd@gmai... josef.pktd@gmai...
Wed Sep 8 07:07:41 CDT 2010


On Wed, Sep 8, 2010 at 7:44 AM, Neal Becker <ndbecker2@gmail.com> 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
> <functools.partial object at 0x4e396d8>
>
> Anything I can do about it?

Set .nin (attribute of vectorized function, I think) directly with
number of arguments (int)

Josef

>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>


More information about the NumPy-Discussion mailing list