[Numpy-discussion] Universal functions and introspection

Sylvain Corlay sylvain.corlay at gmail.com
Wed Apr 16 17:39:07 EDT 2014


Besides, the result of numpy.vectorize don't have 'nin' and 'nout' members.
Cheers,


On Wed, Apr 16, 2014 at 2:55 AM, Nathaniel Smith <njs at pobox.com> wrote:

> I don't think the names exist currently except as mnemonics in the
> docstring. Patches to improve 'inspect' support would be welcome of
> course.
>
> -n
>
> On Tue, Apr 15, 2014 at 11:30 PM, Sylvain Corlay
> <sylvain.corlay at gmail.com> wrote:
> > Hi,
> > Unfortunately, numpy ufuncs are incompatible with the inspect module.
> > While ufunc.nin and ufunc.nout provide some information on the
> signature, I
> > don't see how to retrieve argument names. What is the preferred/best way
> to
> > get argument names of a numpy ufuncs?
> > Best,
> > Sylvain
> >
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion at scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >
>
>
>
> --
> Nathaniel J. Smith
> Postdoctoral researcher - Informatics - University of Edinburgh
> http://vorpus.org
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140416/09138a7b/attachment.html>


More information about the NumPy-Discussion mailing list