bpo-29770: remove outdated PYO related info (GH-590)

This commit is contained in:
Xiang Zhang 2017-03-11 13:02:52 +08:00 committed by GitHub
parent 70ee0cd5c2
commit 0710d75425
10 changed files with 25 additions and 31 deletions

View file

@ -155,7 +155,7 @@ Glossary
bytecode
Python source code is compiled into bytecode, the internal representation
of a Python program in the CPython interpreter. The bytecode is also
cached in ``.pyc`` and ``.pyo`` files so that executing the same file is
cached in ``.pyc`` files so that executing the same file is
faster the second time (recompilation from source to bytecode can be
avoided). This "intermediate language" is said to run on a
:term:`virtual machine` that executes the machine code corresponding to

View file

@ -464,12 +464,12 @@ The :class:`PyZipFile` constructor takes the same parameters as the
added to the archive, compiling if necessary.
If *pathname* is a file, the filename must end with :file:`.py`, and
just the (corresponding :file:`\*.py[co]`) file is added at the top level
just the (corresponding :file:`\*.pyc`) file is added at the top level
(no path information). If *pathname* is a file that does not end with
:file:`.py`, a :exc:`RuntimeError` will be raised. If it is a directory,
and the directory is not a package directory, then all the files
:file:`\*.py[co]` are added at the top level. If the directory is a
package directory, then all :file:`\*.py[co]` are added under the package
:file:`\*.pyc` are added at the top level. If the directory is a
package directory, then all :file:`\*.pyc` are added under the package
name as a file path, and if any subdirectories are package directories,
all of these are added recursively.

View file

@ -9,7 +9,7 @@
--------------
This module adds the ability to import Python modules (:file:`\*.py`,
:file:`\*.py[co]`) and packages from ZIP-format archives. It is usually not
:file:`\*.pyc`) and packages from ZIP-format archives. It is usually not
needed to use the :mod:`zipimport` module explicitly; it is automatically used
by the built-in :keyword:`import` mechanism for :data:`sys.path` items that are paths
to ZIP archives.

View file

@ -532,8 +532,8 @@ conflict.
.. envvar:: PYTHONDONTWRITEBYTECODE
If this is set to a non-empty string, Python won't try to write ``.pyc`` or
``.pyo`` files on the import of source modules. This is equivalent to
If this is set to a non-empty string, Python won't try to write ``.pyc``
files on the import of source modules. This is equivalent to
specifying the :option:`-B` option.