Re: [Numpy-discussion] Universal functions and introspection
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.cor...@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@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@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Universal functions and introspection
Does argument clinic work with python2 or is it python3 only? http://legacy.python.org/dev/peps/pep-0436/ f On Tue, Apr 15, 2014 at 11:55 PM, Nathaniel Smith n...@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.cor...@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@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@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Universal functions and introspection
On Wed, Apr 16, 2014 at 3:50 PM, Fernando Perez fperez@gmail.comwrote: Does argument clinic work with python2 or is it python3 only? http://legacy.python.org/dev/peps/pep-0436/ It is python3 only, but is should not be hard to adapt it to generate 2/3 compatible code. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Universal functions and introspection
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 n...@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.cor...@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@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@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Universal functions and introspection
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@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion