Python bytecode compatibility between interpreter versions

Terry Reedy tjreedy at udel.edu
Mon Mar 22 09:54:04 EST 2004


"Jon Perez" <jbperez808 at yahoo.com> wrote in message
news:c3lguo$271vv8$1 at ID-180326.news.uni-berlin.de...
> In commercial apps for which one might not want to distribute the source
> for, it would be really nice if one can count on just requiring the
end-user
> to install a version of Python (but not extra extension modules anymore)
and
> then distribute the app as a bunch of .pyc's packaged in a .zip file and
> use the PYTHONPATH method you showed.  Just remember to provide a set of
> .pyc's for each version of Python you support.

The issue of hiding source comes up every couple of months.  If there is
not a FAQ entry, there are certainly many past threads.  Note that the dis
modules makes bytecode pretty easy to read, especially with some
experience.

Terry J. Reedy







More information about the Python-list mailing list