mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Merge 3.5
This commit is contained in:
commit
a724304f58
1 changed files with 7 additions and 7 deletions
|
@ -253,13 +253,13 @@ PEP 488: Elimination of PYO files
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
|
||||||
:pep:`488` does away with the concept of ``.pyo`` files. This means that
|
:pep:`488` does away with the concept of ``.pyo`` files. This means that
|
||||||
``.pyc`` files represent both unoptimized and optimized bytecode. To prevent
|
``.pyc`` files represent both unoptimized and optimized bytecode. To prevent the
|
||||||
the need to constantly regenerate bytecode files, ``.pyc`` files now have an
|
need to constantly regenerate bytecode files, ``.pyc`` files now have an
|
||||||
optional ``opt-`` tag in their name when the bytecode is optimized. This has
|
optional ``opt-`` tag in their name when the bytecode is optimized. This has the
|
||||||
the side-effect of no more bytecode file name clashes when running under either
|
side-effect of no more bytecode file name clashes when running under either
|
||||||
``-O`` or ``-OO``, thus allowing unoptimized, ``-O``, and ``-OO`` bytecode files
|
``-O`` or ``-OO``. Consequently, bytecode files generated from ``-O``, and
|
||||||
to all exist simultaneously. :func:`importlib.util.cache_from_source` has an
|
``-OO`` may now exist simultaneously. :func:`importlib.util.cache_from_source`
|
||||||
updated API to help with this change.
|
has an updated API to help with this change.
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue