[Python-Dev] __pycache__ creation
Barry Warsaw
barry at python.org
Mon Mar 22 21:20:02 CET 2010
On Mar 22, 2010, at 02:02 PM, Ron Adam wrote:
>If I understand correctly, we would have the current mode as the default, and
>can trigger __pycache__ behavior simply by manually creating a __pycache__
>directory and deleting any byte-code files in the module/program directory.
>
>I like this, it is easy to understand and can be used without messing with
>flags or environment variables.
Well, for a package with subpackages, it gets more complicated. Definitely
not something you're likely to do manually. Antoine's suggestion of 'python
-m compileall --pycache' would work, but I think it's also obscure enough that
most Python users won't get the benefit.
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100322/28503161/attachment-0001.pgp>
More information about the Python-Dev
mailing list