faqts : Computers : Programming : Languages : Python : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 10 people (50%) answered Yes
Recently 4 of 7 people (57%) answered Yes

Entry

Does anybody know of a compiler for python?

Jul 27th, 2000 03:37
unknown unknown, Shae Matijs Erisson


Jeremy Hylton has a source to bytecode compiler written in Python.
it's in the python/nondist/Compiler/ part of the CVS tree.
Greg Stein and Bill Tutt wrote a Python2C translator, which cuts at
least 10percent off of running time from what I've read. The C file
that's written is a Python module, and so won't let you make a pure
executable though.
It's at http://lima.mudlib.org/~rassilon/py2c/ (or was last I checked)
A python compiler is definitely possible, especially once you've checked
out the two projects mentioned above. I don't know how much it's needed
though.