[Numpy-discussion] ANN: numexpr 2.4.3 released

Nathaniel Smith njs at pobox.com
Mon Apr 27 19:14:50 EDT 2015


On Apr 27, 2015 1:44 PM, "Neil Girdhar" <mistersheik at gmail.com> wrote:
>
> I've always wondered why numexpr accepts strings rather than looking a
function's source code, using ast to parse it, and then transforming the
AST.  I just looked at another project, pyautodiff, which does that.  And I
think numba does that for llvm code generation.  Wouldn't it be nicer to
just apply a decorator to a function than to write the function as a Python
string?

Numba works from byte code, not the ast. There's no way to access the ast
reliably at runtime in python -- it gets thrown away during compilation.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150427/c8d29ff7/attachment.html>


More information about the NumPy-Discussion mailing list