Python bytecode compatibility between interpreter versions

Roger Binns rogerb at rogerbinns.com
Sun Mar 21 18:50:42 CET 2004


> >    $ PYTHONPATH=example.zip python main.py
>
> Just like Java's CLASSPATH (and possibly inspired by it)...

Except predating Java by several years ...

>  Does it work on Windows as well?

   C:\WINDOWS> set PYTHONPATH=example.zip
   C:\WINDOWS> python main.py

> And how about .tar.gz, .tar.bz or .gzip files?

Nope.  The unit of transport is zip files.  You can also
point to expanded directories.

Roger





More information about the Python-list mailing list