[Python-Dev] __file__ and bytecode-only

Glyph Lefkowitz glyph at twistedmatrix.com
Thu Mar 4 04:28:45 CET 2010


On Mar 3, 2010, at 10:22 PM, Greg Ewing wrote:

> Glenn Linderman wrote:
> 
>> In this scenario, the .pyc files would still live in __pycache__ ?  Complete with the foo.<token>.pyc naming ?
> 
> It might be neater to have a separate cache directory
> for each bytecode version, named __cache.<token>__ or
> some such.

Okay, this is probably some pretty silly bikeshedding, but: if we're going to have it be something.something-else, can we please make sure that .something-else is a common extension that means "python bytecode cache"?  It would be good to keep the file-manager and shell operations required to say "blow away bytecode cache directories" as simple as possible.



More information about the Python-Dev mailing list