[Python-Dev] PEP 304 - is anyone really interested?

Bob Ippolito bob at redivi.com
Fri Jun 24 08:00:03 CEST 2005


On Jun 23, 2005, at 10:11 PM, Greg Ewing wrote:

> Skip Montanaro wrote:
>
>> I wrote PEP 304, "Controlling Generation of Bytecode Files":
>>
>>     http://www.python.org/peps/pep-0304.html
>>
>
> I would like to see some way of having bytecode files put
> into platform/version dependent subdirectories, which
> would make it easier e.g. to have Python code shared
> over a network between machines of different architectures
> or running different Python versions. But the scheme this
> PEP proposes (a single session-wide location) is too
> coarse-grained for what I have in mind. So I would not
> support this particular PEP without sufficiently large
> changes that it might as well become a new PEP.

You could implement that in your sitecustomize.py, unless you have  
Python interpreters that change platform or version mid-session.

I don't see why it needs to be subdirectories, you could make the  
bytecode cache local or somewhere on the server that you have write  
access to.

-bob



More information about the Python-Dev mailing list