how is python not the same as java?

John Machin sjmachin at lexicon.net
Fri Nov 10 15:36:26 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 and start writting java code? no

If not, then java lacks functionality -- but that (like *all* your
quibbles below) has nothing to do with the fundamental point: both
languages compile into an intermediate form which is then interprerted.

>
> the division between java (runtime) and javac is very explicit, the
> compiler catches a lot of things, in python this is threaded in a
> totally different way.

Again, irrelevant.

>
> the pyc files are just a "catching" system for the common python
> developer,

Do you mean "caching"?

> as for the java developer the .class files are executable
> code.

So are .pyc files.

> In python noone runs the pyc files, the interpreter takes care
> of this for you.

Python is more functional, but again this has nothing to do with the
question.




More information about the Python-list mailing list