[Numpy-discussion] Keyword argument support for vectorize.

Ralf Gommers ralf.gommers@googlemail....
Sun Apr 8 14:09:42 CDT 2012

On Sat, Apr 7, 2012 at 12:18 AM, Michael McNeil Forbes <
michael.forbes@gmail.com> wrote:

> Hi,
> I added a simple enhancement patch to provide vectorize with simple
> keyword argument support.  (I added a new kwvectorize decorator, but
> suspect this could/should easily be rolled into the existing vectorize.)
> http://projects.scipy.org/numpy/ticket/2100

That looks like a useful enhancement. Integrating in the existing vectorize
class should be the way to go.

> This just reorders any kwargs into the correct position (filling in
> defaults as needed) and then class the "vectorize"d function.
> If people think this is reasonable, I can improve the patch with more
> comprehensive testing and error messages.
> The vectorize tests look reasonable, although adding to verify that things
work with class methods looks necessary.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120408/96425e46/attachment.html 

More information about the NumPy-Discussion mailing list