numpy/numpy — pull request #275 by mforbes (2012-05-10 05:48:24+00:00)
Title: ENH: Add kwarg support for vectorize for ticket #2100 and ticket #1156

Ticket #2100: kwarg support for vectorize
- Added _get_argspec() to determine kwargs
- API: Optional argspect argument to vectorize
- API: Optional exclude argument to exclude some args from vectorization.
- API: Optional get signature and doc from member .original_function
- Added documentation, examples, and coverage tests
- Added additional coverage test and base case for functions with no args
- Factored original behaviour into _vectorize_call
- Some minor documentation and error message corrections

Ticket #1156: Support vectorizing over instance methods
- Don't vectorize over self if thefunc is a method and .im_self is not None.