[Python-Dev] pycache creation (original) (raw)

Terry Reedy tjreedy at udel.edu
Tue Mar 23 04:06:21 CET 2010


On 3/22/2010 2:15 PM, Antoine Pitrou wrote:

What I am proposing is that the creation of pycache /directories/ be put outside of the core. It can be part of distutils, or of a separate module, or delegated to third-party tools. It could even be as simple as "python -m compileall --pycache", if someone implements it.

Creation of the pycache /contents/ (files inside the directory) would still be part of core Python, but only if the directory exists and is writable by the current process.

-1

If, as I have done several times recently, I create a directory and insert an empty init.py and several real module.py files, I want the .pycs to go into pycache *automatically, by default, without me also having to remember to create an empty pycache directory, each time. Ugh.

Terry Jan Reedy



More information about the Python-Dev mailing list