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

Skip to content

Commit e4ba872

Browse files
Remove redundant leading zeroes in PEP references.
1 parent 0950e6a commit e4ba872

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

Doc/library/contextlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ an explicit ``with`` statement.
603603

604604
.. seealso::
605605

606-
:pep:`0343` - The "with" statement
606+
:pep:`343` - The "with" statement
607607
The specification, background, and examples for the Python :keyword:`with`
608608
statement.
609609

Doc/library/weakref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ These method have the same issues as the and :meth:`keyrefs` method of
329329

330330
.. seealso::
331331

332-
:pep:`0205` - Weak References
332+
:pep:`205` - Weak References
333333
The proposal and rationale for this feature, including links to earlier
334334
implementations and information about similar features in other languages.
335335

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ is equivalent to ::
439439

440440
.. seealso::
441441

442-
:pep:`0343` - The "with" statement
442+
:pep:`343` - The "with" statement
443443
The specification, background, and examples for the Python :keyword:`with`
444444
statement.
445445

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2188,7 +2188,7 @@ For more information on context managers, see :ref:`typecontextmanager`.
21882188

21892189
.. seealso::
21902190

2191-
:pep:`0343` - The "with" statement
2191+
:pep:`343` - The "with" statement
21922192
The specification, background, and examples for the Python :keyword:`with`
21932193
statement.
21942194

Doc/reference/expressions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,14 @@ on the right hand side of an assignment statement.
378378

379379
.. seealso::
380380

381-
:pep:`0255` - Simple Generators
381+
:pep:`255` - Simple Generators
382382
The proposal for adding generators and the :keyword:`yield` statement to Python.
383383

384-
:pep:`0342` - Coroutines via Enhanced Generators
384+
:pep:`342` - Coroutines via Enhanced Generators
385385
The proposal to enhance the API and syntax of generators, making them
386386
usable as simple coroutines.
387387

388-
:pep:`0380` - Syntax for Delegating to a Subgenerator
388+
:pep:`380` - Syntax for Delegating to a Subgenerator
389389
The proposal to introduce the :token:`yield_from` syntax, making delegation
390390
to sub-generators easy.
391391

Doc/whatsnew/3.0.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ Python 3.0 has simplified the rules for ordering comparisons:
204204
Integers
205205
--------
206206

207-
* :pep:`0237`: Essentially, :class:`long` renamed to :class:`int`.
207+
* :pep:`237`: Essentially, :class:`long` renamed to :class:`int`.
208208
That is, there is only one built-in integral type, named
209209
:class:`int`; but it behaves mostly like the old :class:`long` type.
210210

211-
* :pep:`0238`: An expression like ``1/2`` returns a float. Use
211+
* :pep:`238`: An expression like ``1/2`` returns a float. Use
212212
``1//2`` to get the truncating behavior. (The latter syntax has
213213
existed for years, at least since Python 2.2.)
214214

@@ -384,7 +384,7 @@ New Syntax
384384

385385
* Dictionary comprehensions: ``{k: v for k, v in stuff}`` means the
386386
same thing as ``dict(stuff)`` but is more flexible. (This is
387-
:pep:`0274` vindicated. :-)
387+
:pep:`274` vindicated. :-)
388388

389389
* Set literals, e.g. ``{1, 2}``. Note that ``{}`` is an empty
390390
dictionary; use ``set()`` for an empty set. Set comprehensions are
@@ -469,7 +469,7 @@ Removed Syntax
469469

470470
* The only acceptable syntax for relative imports is :samp:`from .[{module}]
471471
import {name}`. All :keyword:`import` forms not starting with ``.`` are
472-
interpreted as absolute imports. (:pep:`0328`)
472+
interpreted as absolute imports. (:pep:`328`)
473473

474474
* Classic classes are gone.
475475

@@ -555,9 +555,9 @@ review:
555555

556556
* Many old modules were removed. Some, like :mod:`gopherlib` (no
557557
longer used) and :mod:`md5` (replaced by :mod:`hashlib`), were
558-
already deprecated by :pep:`0004`. Others were removed as a result
558+
already deprecated by :pep:`4`. Others were removed as a result
559559
of the removal of support for various platforms such as Irix, BeOS
560-
and Mac OS 9 (see :pep:`0011`). Some modules were also selected for
560+
and Mac OS 9 (see :pep:`11`). Some modules were also selected for
561561
removal in Python 3.0 due to lack of use or because a better
562562
replacement exists. See :pep:`3108` for an exhaustive list.
563563

@@ -568,7 +568,7 @@ review:
568568
externally maintained at https://www.jcea.es/programacion/pybsddb.htm.
569569

570570
* Some modules were renamed because their old name disobeyed
571-
:pep:`0008`, or for various other reasons. Here's the list:
571+
:pep:`8`, or for various other reasons. Here's the list:
572572

573573
======================= =======================
574574
Old Name New Name
@@ -685,7 +685,7 @@ Changes To Exceptions
685685
The APIs for raising and catching exception have been cleaned up and
686686
new powerful features added:
687687

688-
* :pep:`0352`: All exceptions must be derived (directly or indirectly)
688+
* :pep:`352`: All exceptions must be derived (directly or indirectly)
689689
from :exc:`BaseException`. This is the root of the exception
690690
hierarchy. This is not new as a recommendation, but the
691691
*requirement* to inherit from :exc:`BaseException` is new. (Python

0 commit comments

Comments
 (0)