[Python-Dev] PEP 3147 ready for pronouncement and merging (original) (raw)
Isaac Morland ijmorlan at uwaterloo.ca
Wed Apr 14 15:52:01 CEST 2010
- Previous message: [Python-Dev] PEP 3147 ready for pronouncement and merging
- Next message: [Python-Dev] PEP 3147 ready for pronouncement and merging
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 13 Apr 2010, Barry Warsaw wrote:
I am attaching the latest revision of PEP 3147 to this message, which is also available here:
http://www.python.org/dev/peps/pep-3147/ [....] PEP: 3147 Title: PYC Repository Directories [....] Further, pyc files will contain a magic string that differentiates the Python version they were compiled for. This allows multiple byte compiled cache files to co-exist for a single Python source file. This scheme has the added benefit of reducing the clutter in a Python package directory. When a Python source file is imported for the first time, a
_pycache_
directory will be created in the package directory, if one does not already exist. The pyc file for the imported source will be written to the_pycache_
directory, using the magic-tag formatted name. If either the creation of the_pycache_
directory or the pyc file inside that fails, the import will still succeed, just as it does in a pre-PEP-3147 world. [....]
Thank you for doing the work on this improvement.
I have one wording suggestion which I hope isn't bikeshedding: up above, I think the sentence containing "pyc files will contain a magic string" would be clearer if it made it clear that the file names, not (just?) the file contents, will contain the magic tag.
Isaac Morland CSCF Web Guru DC 2554C, x36650 WWW Software Specialist
- Previous message: [Python-Dev] PEP 3147 ready for pronouncement and merging
- Next message: [Python-Dev] PEP 3147 ready for pronouncement and merging
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]