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
--------
========
Python's descriptor protocol requires that descriptors
be members of the *type* of an object. This PEP proposes
@ -20,7 +20,7 @@ Abstract
would permit using properties in modules.
Rationale
---------
=========
Python's descriptor protocol guides programmers towards
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.
Implementation
--------------
==============
The basic idea is simple: modify the ``tp_descr_get`` and ``tp_descr_set``
functions exposed by ``PyModule_Type`` to inspect the attribute interacted
@ -86,20 +86,20 @@ Implementation
is set is on ``PyProperty_Type``.
Prototype
---------
=========
A prototype of this functionality is under development
at GitHub [github]_.
Acknowledgements
----------------
================
Armin Rigo essentially proposed this mechanism when presented
with the idea of "module properties", and educated the author
both on the complexities of the problem and the proper solution.
References
----------
==========
.. [github]
https://github.com/larryhastings/cpython/tree/module-properties