Had Phyton suggested

Jp Calderone exarkun at intarweb.us
Mon Feb 9 22:39:11 CET 2004


On Mon, Feb 09, 2004 at 08:45:55PM +0000, Steve Horsley wrote:
> [snip]
> 
> There _is_ a difference in the compilation. With java, you have to 
> compile to bytecode before trying to run the program. With python, you 
> just run the program. This is because the python interpreter accepts 
> text files, whereas the JVM doesn't. e.g.

  The difference is minimal.  CPython merely knows how to invoke its own
compiler when compilation is necessary.  Compilation still occurs, always,
before anything is executed.  You could write a wrapper around java and
javac that, when given a .class file, ran it directly, and when given a
.java file, compiled it, then ran the resulting .class file.  CPython is a
bit smarter than this (existing files, timestamps, etc), but these are minor
differences, not really worthy of note.

  Jp





More information about the Python-list mailing list