--
You received this message because you are subscribed to the Google Groups "Numba Public Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users+unsubscribe@continuum.io.
To post to this group, send email to numba...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/numba-users/086ff741-c72a-4873-aa89-f78e91303323%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
There is (I'm away from my computer right now, so I can't test it): look for an "overloads" dictionary, one for each signature, and in its values, "library.get_llvm_str()". For the Python source, there is an attribute holding the original function, which you can use Python's inspect module on.Jim
On Jun 9, 2017 12:56 PM, "Dustin Moore" <moo...@secac.com> wrote:
Is there a way to inspect a ufunc produced by the @vectorize decorator to figure out what module or source code file contained the original Python that was compiled?I did a dir() on a ufunc from Numba and the attributes were['__call__', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__name__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'accumulate', 'at', 'identity', 'nargs', 'nin', 'nout', 'ntypes', 'outer', 'reduce', 'reduceat', 'signature', 'types']and I couldn't find any of them that would be useful. A __module__ would be really useful.Thanks,Dustin Moore
--
You received this message because you are subscribed to the Google Groups "Numba Public Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users...@continuum.io.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users+unsubscribe@continuum.io.
To post to this group, send email to numba...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/numba-users/bd0886d1-c714-4a45-90ca-c9d9729c2c9f%40continuum.io.