how is python not the same as java?

Bruno Desthuilliers onurb at xiludom.gro
Mon Nov 13 05:50:54 EST 2006


Jorge Vargas wrote:
> On 9 Nov 2006 18:09:37 -0800, John Machin <sjmachin at lexicon.net> wrote:
>>
>> Jorge Vargas wrote:
>> > On 9 Nov 2006 16:44:40 -0800, gavino <bootiack at yahoo.com> wrote:
>> > > both are interpreted oo langauges......
>> > >
>> > that is not correct java is compiled and the VM interprets the code
>>
>> ... and what do you think is in those pesky little .pyc files you may
>> have noticed lying around on your hard disk?
>>
> can you open a commandline

Open it with what ? A knife ?

> and start writting java code? no

And ? Some implementations of at least Haskell, OCaml, and Common Lisp
are compiled, and still offer a REPL.

> the division between java (runtime) and javac is very explicit,

And ?

> the
> compiler catches a lot of things, in python this is threaded in a
> totally different way.
> 
> the pyc files are just a "catching" system for the common python
> developer

The pyc files are binary files containing Python byte-code.

>, as for the java developer the .class files are executable
> code. In python noone runs the pyc files, the interpreter takes care
> of this for you.

And ? The fact that the Python runtime is smart enough (lol) to silently
 call the compiler when needed doesn't make Python (well, CPython...)
more or less "interpreted" or "compiled".


-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list