Re: [Numpy-discussion] vectorize in new.instancemethod and *args

2008-09-26 Thread joep
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

[Numpy-discussion] vectorize in new.instancemethod and *args

2008-09-26 Thread joep
I have a question about the use of vectorize in new.instancemethod: Using vectorize with *args requires adjustment to the number of arguments, nin = nargs. This works when it is used with a function. However, I don't manage to set nin when using vectorize with a method created with new.instancemet