[Python-Dev] __file__ and bytecode-only
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Mar 4 04:48:36 CET 2010
Antoine Pitrou wrote:
> Actually, I find it neater to have a single cache directory. It makes
> for much less clutter, and simpler ignore rules.
Another possibility would be to have a single top-level
cache directory with a subdirectory for each version:
__bytecode__.pycache/<version>/<filename>.pyc
I don't think this ought to increase the stat call
count, since the interpreter will always be looking
for a particular version of bytecode, so it can
just stat for the appropriate subdirectory
directly.
--
Greg
More information about the Python-Dev
mailing list