On Sep 26, 11:35 am, joep <[EMAIL PROTECTED]> wrote:
> I have a question about the use of vectorize in new.instancemethod:

>
> # case D: class with vectorize with nin adjustment -> broken
> # nin is not correctly used by vectorize
>
> class D(object):
>     def __init__(self):
>         # define the vectorized function
>         vecfunc = vectorize(funcm)
>         vecfunc.nin = 2
>         self.funcm = new.instancemethod(vecfunc,self,A)

correction case D works
vecfunc.nin = 3 works
my silly mistake, not counting self as an argument

Josef
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to