summaryrefslogtreecommitdiffstats
path: root/Doc/library/imp.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-14 14:36:18 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-14 14:36:18 (GMT)
commit766ad36de54203f6d5af21bbb20ba375ca1d66a8 (patch)
treeb5a496928f7f2520731b815473c908f3f05464e8 /Doc/library/imp.rst
parent9467b212f5dd4558443d03584e1ed9bca5a2b780 (diff)
downloadcpython-766ad36de54203f6d5af21bbb20ba375ca1d66a8.zip
cpython-766ad36de54203f6d5af21bbb20ba375ca1d66a8.tar.gz
cpython-766ad36de54203f6d5af21bbb20ba375ca1d66a8.tar.bz2
Merged revisions 81163 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81163 | victor.stinner | 2010-05-14 16:20:07 +0200 (ven., 14 mai 2010) | 2 lines Doc: replace PEP xxx by :pep:`xxx` to create a link on the PEP ........
Diffstat (limited to 'Doc/library/imp.rst')
-rw-r--r--Doc/library/imp.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst
index 6e70d08..f080934 100644
--- a/Doc/library/imp.rst
+++ b/Doc/library/imp.rst
@@ -211,7 +211,7 @@ byte-compiled file paths.
.. function:: cache_from_source(path, debug_override=None)
- Return the PEP 3147 path to the byte-compiled file associated with the
+ Return the :pep:`3147` path to the byte-compiled file associated with the
source *path*. For example, if *path* is ``/foo/bar/baz.py`` the return
value would be ``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python 3.2.
The ``cpython-32`` string comes from the current magic tag (see
@@ -225,15 +225,15 @@ byte-compiled file paths.
.. function:: source_from_cache(path)
- Given the *path* to a PEP 3147 file name, return the associated source code
+ Given the *path* to a :pep:`3147` file name, return the associated source code
file path. For example, if *path* is
``/foo/bar/__pycache__/baz.cpython-32.pyc`` the returned path would be
``/foo/bar/baz.py``. *path* need not exist, however if it does not conform
- to PEP 3147 format, a ``ValueError`` is raised.
+ to :pep:`3147` format, a ``ValueError`` is raised.
.. function:: get_tag()
- Return the PEP 3147 magic tag string matching this version of Python's
+ Return the :pep:`3147` magic tag string matching this version of Python's
magic number, as returned by :func:`get_magic`.