Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 766ad36

Browse files
author
Victor Stinner
committed
Merged revisions 81163 via svnmerge from
svn+ssh://[email protected]/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 ........
1 parent 9467b21 commit 766ad36

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

Doc/howto/cporting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ can also be used in some cases. ::
120120
Module initialization and state
121121
===============================
122122

123-
Python 3.0 has a revamped extension module initialization system. (See PEP
123+
Python 3.0 has a revamped extension module initialization system. (See
124124
:pep:`3121`.) Instead of storing module state in globals, they should be stored
125125
in an interpreter specific structure. Creating modules that act correctly in
126126
both 2.x and 3.0 is tricky. The following simple example demonstrates how. ::

Doc/library/imp.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ byte-compiled file paths.
211211

212212
.. function:: cache_from_source(path, debug_override=None)
213213

214-
Return the PEP 3147 path to the byte-compiled file associated with the
214+
Return the :pep:`3147` path to the byte-compiled file associated with the
215215
source *path*. For example, if *path* is ``/foo/bar/baz.py`` the return
216216
value would be ``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python 3.2.
217217
The ``cpython-32`` string comes from the current magic tag (see
@@ -225,15 +225,15 @@ byte-compiled file paths.
225225

226226
.. function:: source_from_cache(path)
227227

228-
Given the *path* to a PEP 3147 file name, return the associated source code
228+
Given the *path* to a :pep:`3147` file name, return the associated source code
229229
file path. For example, if *path* is
230230
``/foo/bar/__pycache__/baz.cpython-32.pyc`` the returned path would be
231231
``/foo/bar/baz.py``. *path* need not exist, however if it does not conform
232-
to PEP 3147 format, a ``ValueError`` is raised.
232+
to :pep:`3147` format, a ``ValueError`` is raised.
233233

234234
.. function:: get_tag()
235235

236-
Return the PEP 3147 magic tag string matching this version of Python's
236+
Return the :pep:`3147` magic tag string matching this version of Python's
237237
magic number, as returned by :func:`get_magic`.
238238

239239

Doc/library/pkgutil.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This module provides functions to manipulate packages:
4141

4242
Get a resource from a package.
4343

44-
This is a wrapper for the PEP 302 loader :func:`get_data` API. The package
44+
This is a wrapper for the :pep:`302` loader :func:`get_data` API. The package
4545
argument should be the name of a package, in standard module format
4646
(foo.bar). The resource argument should be in the form of a relative
4747
filename, using ``/`` as the path separator. The parent directory name
@@ -56,5 +56,5 @@ This module provides functions to manipulate packages:
5656
d = os.path.dirname(sys.modules[package].__file__)
5757
data = open(os.path.join(d, resource), 'rb').read()
5858

59-
If the package cannot be located or loaded, or it uses a PEP 302 loader
59+
If the package cannot be located or loaded, or it uses a :pep:`302` loader
6060
which does not support :func:`get_data`, then None is returned.

Doc/library/runpy.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The :mod:`runpy` module provides two functions:
1818

1919
Execute the code of the specified module and return the resulting module
2020
globals dictionary. The module's code is first located using the standard
21-
import mechanism (refer to PEP 302 for details) and then executed in a
21+
import mechanism (refer to :pep:`302` for details) and then executed in a
2222
fresh module namespace.
2323

2424
If the supplied module name refers to a package rather than a normal
@@ -48,7 +48,7 @@ The :mod:`runpy` module provides two functions:
4848

4949
``__cached__`` will be set to ``None``.
5050

51-
``__loader__`` is set to the PEP 302 module loader used to retrieve the
51+
``__loader__`` is set to the :pep:`302` module loader used to retrieve the
5252
code for the module (This loader may be a wrapper around the standard
5353
import mechanism).
5454

@@ -106,7 +106,7 @@ The :mod:`runpy` module provides two functions:
106106
loader does not make filename information available, this variable is set
107107
to :const:`None`. For a simple script, this will be set to ``file_path``.
108108

109-
``__loader__`` is set to the PEP 302 module loader used to retrieve the
109+
``__loader__`` is set to the :pep:`302` module loader used to retrieve the
110110
code for the module (This loader may be a wrapper around the standard
111111
import mechanism). For a simple script, this will be set to :const:`None`.
112112

Doc/library/wsgiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ This is a working "Hello World" WSGI application::
710710
# use a function (note that you're not limited to a function, you can
711711
# use a class for example). The first argument passed to the function
712712
# is a dictionary containing CGI-style envrironment variables and the
713-
# second variable is the callable object (see PEP333)
713+
# second variable is the callable object (see :pep:`333`)
714714
def hello_world_app(environ, start_response):
715715
status = b'200 OK' # HTTP Status
716716
headers = [(b'Content-type', b'text/plain; charset=utf-8')] # HTTP Headers

Doc/library/zipimport.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ ZIP archives with an archive comment are currently not supported.
3434
Documentation on the ZIP file format by Phil Katz, the creator of the format and
3535
algorithms used.
3636

37-
:pep:`0273` - Import Modules from Zip Archives
37+
:pep:`273` - Import Modules from Zip Archives
3838
Written by James C. Ahlstrom, who also provided an implementation. Python 2.3
3939
follows the specification in PEP 273, but uses an implementation written by Just
4040
van Rossum that uses the import hooks described in PEP 302.
4141

42-
:pep:`0302` - New Import Hooks
42+
:pep:`302` - New Import Hooks
4343
The PEP to add the import hooks that help this module work.
4444

4545

0 commit comments

Comments
 (0)