This commit is contained in:
Benjamin Peterson 2015-05-26 21:40:28 -05:00
parent 55871f04bf
commit e328323cf7

View file

@ -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::