Re: [Numpy-discussion] Keyword argument support for vectorize.

2012-04-13 Thread Michael McNeil Forbes
On 9 Apr 2012, at 3:02 AM, Nathaniel Smith wrote: > functools was added in Python 2.5, and so far numpy is still trying to > maintain 2.4 compatibility. Thanks: I forgot about that. I have attached a 2.4 compatible patch, updated docs, and tests for review to ticket #2100. This also includes

Re: [Numpy-discussion] Keyword argument support for vectorize.

2012-04-09 Thread Nathaniel Smith
On Mon, Apr 9, 2012 at 10:53 AM, Michael McNeil Forbes wrote: > It seems like functools.partial is the appropriate tool to use here > which means I will have to deal with the functools was added in Python 2.5, and so far numpy is still trying to maintain 2.4 compatibility. (Not that this is parti

Re: [Numpy-discussion] Keyword argument support for vectorize.

2012-04-09 Thread Michael McNeil Forbes
On 8 Apr 2012, at 12:09 PM, Ralf Gommers wrote: > That looks like a useful enhancement. Integrating in the existing > vectorize class should be the way to go. Okay. I will push forward. I would also like to add support for "freezing" (or "excluding") certain arguments from the vectorization.

Re: [Numpy-discussion] Keyword argument support for vectorize.

2012-04-08 Thread Ralf Gommers
On Sat, Apr 7, 2012 at 12:18 AM, Michael McNeil Forbes < michael.for...@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 exist

[Numpy-discussion] Keyword argument support for vectorize.

2012-04-06 Thread Michael McNeil Forbes
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 This just reorders any kwargs into