summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-03-11 05:02:52 (GMT)
committerGitHub <noreply@github.com>2017-03-11 05:02:52 (GMT)
commit0710d754255e731e6fcc3f206b51db6156da17c8 (patch)
treef3d24f09ed0c3ba415d99a070d9cdc7bdd460123 /Doc
parent70ee0cd5c2a3dba82cb8e0c0742c012f9134c040 (diff)
downloadcpython-0710d754255e731e6fcc3f206b51db6156da17c8.zip
cpython-0710d754255e731e6fcc3f206b51db6156da17c8.tar.gz
cpython-0710d754255e731e6fcc3f206b51db6156da17c8.tar.bz2
bpo-29770: remove outdated PYO related info (GH-590)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/glossary.rst2
-rw-r--r--Doc/library/zipfile.rst6
-rw-r--r--Doc/library/zipimport.rst2
-rw-r--r--Doc/using/cmdline.rst4
4 files changed, 7 insertions, 7 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 41ee3d8..e07ab0d 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -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
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 4cde1dd..5b8c776 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -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.
diff --git a/Doc/library/zipimport.rst b/Doc/library/zipimport.rst
index 46b8c24..eaae2bb 100644
--- a/Doc/library/zipimport.rst
+++ b/Doc/library/zipimport.rst
@@ -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.
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 195f63f..08dc311 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -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.