@@ -158,14 +158,14 @@ trailing underscores are not allowed.
158158
159159.. seealso ::
160160
161- :pep: `523 ` - Underscores in Numeric Literals
162- PEP written by Georg Brandl & Serhiy Storchaka.
161+ :pep: `523 ` -- Underscores in Numeric Literals
162+ PEP written by Georg Brandl and Serhiy Storchaka.
163163
164164
165165.. _pep-523 :
166166
167167PEP 523: Adding a frame evaluation API to CPython
168- =================================================
168+ -------------------------------------------------
169169
170170While Python provides extensive support to customize how code
171171executes, one place it has not done so is in the evaluation of frame
@@ -187,14 +187,14 @@ API will change with Python as necessary.
187187
188188.. seealso ::
189189
190- :pep: `523 ` - Adding a frame evaluation API to CPython
190+ :pep: `523 ` -- Adding a frame evaluation API to CPython
191191 PEP written by Brett Cannon and Dino Viehland.
192192
193193
194194.. _pep-519 :
195195
196196PEP 519: Adding a file system path protocol
197- ===========================================
197+ -------------------------------------------
198198
199199File system paths have historically been represented as :class: `str `
200200or :class: `bytes ` objects. This has led to people who write code which
@@ -254,7 +254,7 @@ pre-existing code::
254254
255255.. seealso ::
256256
257- :pep: `519 ` - Adding a file system path protocol
257+ :pep: `519 ` -- Adding a file system path protocol
258258 PEP written by Brett Cannon and Koos Zevenhoven.
259259
260260
@@ -267,7 +267,7 @@ Formatted string literals are a new kind of string literal, prefixed
267267with ``'f' ``. They are similar to the format strings accepted by
268268:meth: `str.format `. They contain replacement fields surrounded by
269269curly braces. The replacement fields are expressions, which are
270- evaluated at run time, and then formatted using the :func: `format ` protocol.
270+ evaluated at run time, and then formatted using the :func: `format ` protocol::
271271
272272 >>> name = "Fred"
273273 >>> f"He said his name is {name}."
@@ -278,7 +278,7 @@ See :pep:`498` and the main documentation at :ref:`f-strings`.
278278.. _pep-529 :
279279
280280PEP 529: Change Windows filesystem encoding to UTF-8
281- ====================================================
281+ ----------------------------------------------------
282282
283283Representing filesystem paths is best performed with str (Unicode) rather than
284284bytes. However, there are some situations where using bytes is sufficient and
@@ -304,7 +304,7 @@ may be required.
304304 encoding may change before the final release.
305305
306306PEP 487: Simpler customization of class creation
307- ================================================
307+ ------------------------------------------------
308308
309309Upon subclassing a class, the ``__init_subclass__ `` classmethod (if defined) is
310310called on the base class. This makes it straightforward to write classes that
@@ -341,7 +341,7 @@ console use, set :envvar:`PYTHONLEGACYWINDOWSIOENCODING`.
341341 PEP written and implemented by Steve Dower.
342342
343343PYTHONMALLOC environment variable
344- =================================
344+ ---------------------------------
345345
346346The new :envvar: `PYTHONMALLOC ` environment variable allows setting the Python
347347memory allocators and/or install debug hooks.
@@ -442,7 +442,7 @@ Jesús Cea Avión, David Malcolm, and Nikhil Benesch.)
442442.. _whatsnew-deforder :
443443
444444PEP 520: Preserving Class Attribute Definition Order
445- ====================================================
445+ ----------------------------------------------------
446446
447447Attributes in a class definition body have a natural ordering: the same
448448order in which the names appear in the source. This order is now
@@ -453,21 +453,21 @@ Also, the effective default class *execution* namespace (returned from
453453
454454.. seealso ::
455455
456- :pep: `520 ` - Preserving Class Attribute Definition Order
456+ :pep: `520 ` -- Preserving Class Attribute Definition Order
457457 PEP written and implemented by Eric Snow.
458458
459459
460460.. _whatsnew-kwargs :
461461
462462PEP 468: Preserving Keyword Argument Order
463- ==========================================
463+ ------------------------------------------
464464
465465``**kwargs `` in a function signature is now guaranteed to be an
466466insertion-order-preserving mapping.
467467
468468.. seealso ::
469469
470- :pep: `468 ` - Preserving Keyword Argument Order
470+ :pep: `468 ` -- Preserving Keyword Argument Order
471471 PEP written and implemented by Eric Snow.
472472
473473
0 commit comments