[NumPy-Tickets] [NumPy] #2100: Keyword argument support for vectorize.
NumPy Trac
numpy-tickets@scipy....
Fri Apr 6 16:56:31 CDT 2012
#2100: Keyword argument support for vectorize.
---------------------------------------+------------------------------------
Reporter: mforbes | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.lib | Version: devel
Keywords: vectorize kwargs keywords |
---------------------------------------+------------------------------------
In a few place, people have requested being able to use keyword arguments
with vectorize. For example:
http://thread.gmane.org/gmane.comp.python.scientific.user/29362/focus=29371
Here is a simple patch that defines a decorator kwvectorize simply
wrapping vectorize to provide simple support for kwargs. It simply looks
at the order of arguments defined in the original function, and then
reorders any kwargs provided appropriately, calling vectorize with only
positional arguments.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2100>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list