[Python-Dev] __pycache__ creation

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