Ben Finney wrote:
> Could we instead have a single subdirectory for each tree of module
> packages, keeping them tidily out of the way of the source files, while
> making them located just as deterministically::

Not easily. With the scheme currently proposed in the PEP, setting a
value for __file__ which is both reasonably accurate and backwards
compatible with existing file manipulation techniques is
straightforward: just use the name of the cache directory.

With a parallel tree, either __file__ will bear little relation to the
actual location of the cache files or it won't be backwards compatible
with existing usage.

Keep in mind that if this PEP becomes the norm, the level of readily
visible clutter will actually be reduced from "foo.py, foo.pyc, foo.pyo"
to just "foo.py, foo.pyr" (with the file/directory split making it even
easier to separate out the source file from the compiled cache files).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to