Does Python compete with Java?
Peter Hansen
peter at engcorp.com
Tue Apr 6 11:38:36 EDT 2004
Roy Smith wrote:
> The difference is that Java exposes the compilation step to the user
> while Python hides it. If you really wanted to, you could hack up a
> "Python compiler" which takes .py files, imports them to force
> generation of the corresponding .pyc files, and then exits without
> executing anything. You could then execute the .pyc files in a distinct
> "execute phase". Not sure why you would want to do that, though :-)
python -c "import py_compile as p; p.compile('mymodule.py')"
More information about the Python-list
mailing list