Nikita Nemkin, 11.06.2013 13:51:
> Pure Python functions rarely benefit from compilation. I thought it
> would be interesting to add an "interpreted" directive (global,
> module, class, function level + automatic heuristic) that will
> instruct Cython to compile def functions into _bytecode_ and store
> that bytecode in the binary.
> 
> Together with module bundling and embed/freeze it could make a neat
> deployment solution.

Well, it shouldn't be all that hard to implement. Basically, we'd send a
part of the source file through the Python parser after having parsed and
processed it in the compiler.

However, I fail to see the advantage of this feature that would make it
worth providing to users. There usually *is* a visible performance
advantage of compiled code over pure Python code, and the advantages of
interpreted Python code in terms of semantics or compatibility are quite
limited (debugging, maybe, or introspection).

Could you describe how/why you came up with this?


> (I have no plans to implement this.)

I can imagine.

Stefan

_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to