Fix formatting (hopefully) for PEP 549.

This commit is contained in:
Larry Hastings 2017-09-05 12:06:27 -07:00
parent 5c1080518d
commit c0028cb607
1 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ Post-History: 4-Sep-2017
Abstract Abstract
-------- ========
Python's descriptor protocol requires that descriptors Python's descriptor protocol requires that descriptors
be members of the *type* of an object. This PEP proposes be members of the *type* of an object. This PEP proposes
@ -20,7 +20,7 @@ Abstract
would permit using properties in modules. would permit using properties in modules.
Rationale Rationale
--------- =========
Python's descriptor protocol guides programmers towards Python's descriptor protocol guides programmers towards
elegant API design. If your class supports a data-like elegant API design. If your class supports a data-like
@ -60,7 +60,7 @@ Rationale
currently only forsees this as being useful for module objects. currently only forsees this as being useful for module objects.
Implementation Implementation
-------------- ==============
The basic idea is simple: modify the ``tp_descr_get`` and ``tp_descr_set`` The basic idea is simple: modify the ``tp_descr_get`` and ``tp_descr_set``
functions exposed by ``PyModule_Type`` to inspect the attribute interacted functions exposed by ``PyModule_Type`` to inspect the attribute interacted
@ -86,20 +86,20 @@ Implementation
is set is on ``PyProperty_Type``. is set is on ``PyProperty_Type``.
Prototype Prototype
--------- =========
A prototype of this functionality is under development A prototype of this functionality is under development
at GitHub [github]_. at GitHub [github]_.
Acknowledgements Acknowledgements
---------------- ================
Armin Rigo essentially proposed this mechanism when presented Armin Rigo essentially proposed this mechanism when presented
with the idea of "module properties", and educated the author with the idea of "module properties", and educated the author
both on the complexities of the problem and the proper solution. both on the complexities of the problem and the proper solution.
References References
---------- ==========
.. [github] .. [github]
https://github.com/larryhastings/cpython/tree/module-properties https://github.com/larryhastings/cpython/tree/module-properties