@@ -204,11 +204,11 @@ Python 3.0 has simplified the rules for ordering comparisons:
204204Integers
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
685685The APIs for raising and catching exception have been cleaned up and
686686new 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