Small clarification from Isaac Moreland.

This commit is contained in:
Barry Warsaw 2010-04-14 18:10:58 +00:00
parent 95f614c983
commit fe4b02b00c
1 changed files with 4 additions and 3 deletions

View File

@ -101,9 +101,10 @@ Python's import machinery is extended to write and search for byte
code cache files in a single directory inside every Python package code cache files in a single directory inside every Python package
directory. This directory will be called `__pycache__`. directory. This directory will be called `__pycache__`.
Further, pyc files will contain a magic string that differentiates the Further, pyc file names will contain a magic string (tag) that
Python version they were compiled for. This allows multiple byte differentiates the Python version they were compiled for. This allows
compiled cache files to co-exist for a single Python source file. 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 This scheme has the added benefit of reducing the clutter in a Python
package directory. package directory.