Skip to content

Commit 484a803

Browse files
committed
Keep to 79 chars per line
1 parent b2781b9 commit 484a803

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

peps/pep-0820.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,16 @@ There are two variants of such a design:
158158

159159
- A large struct with fields for all info. As we can see with
160160
``PyTypeObject``, most of such a struct tends to be NULLs in practice.
161-
As more fields become obsolete, either the wastage grows, or we introduce
162-
new struct layouts (while keeping compatibility with the old ones for a while).
161+
As more fields become obsolete, either the wastage grows, or we introduce new
162+
struct layouts (while keeping compatibility with the old ones for a while).
163163

164164
- A small struct with only the info necessary for initial creation, with other
165165
info added afterwards (with dedicated function calls, or Python-level
166166
``setattr``). This design:
167167

168168
- makes it cumbersome to add/obsolete/adjust the required info (for example,
169-
in :PEP:`697` I gave meaning to negative values of an existing field; adding
170-
a new field would be cleaner in similar situations);
169+
in :PEP:`697` I gave meaning to negative values of an existing field;
170+
adding a new field would be cleaner in similar situations);
171171
- increases the number of API calls between an extension and the interpreter.
172172

173173
We believe that “batch” API for type/module creation makes sense,
@@ -320,8 +320,8 @@ array of slots::
320320

321321
PyObject *PyType_FromSlots(const PySlot *slots);
322322

323-
The ``PyModule_FromSlotsAndSpec`` function (added in CPython 3.15 in :pep:`793`)
324-
will be *changed* to take the new slot structure::
323+
The ``PyModule_FromSlotsAndSpec`` function (added in CPython 3.15 in
324+
:pep:`793`) will be *changed* to take the new slot structure::
325325

326326
PyObject *PyModule_FromSlotsAndSpec(const PySlot *slots, PyObject *spec)
327327

@@ -490,9 +490,9 @@ Slot renumbering
490490
New slots IDs will have unique numeric values (that is, ``Py_slot_*``,
491491
``Py_tp_*`` and ``Py_mod_*`` won't share IDs).
492492

493-
Slots numbered 1 through 4
494-
(``Py_bf_getbuffer``...\ ``Py_mp_length`` and ``Py_mod_create``...\ ``Py_mod_gil``)
495-
will be redefined as new (larger) numbers.
493+
Slots numbered 1 through 4 (``Py_bf_getbuffer``...\ ``Py_mp_length`` and
494+
``Py_mod_create``...\ ``Py_mod_gil``) will be redefined as new
495+
(larger) numbers.
496496
The old numbers will remain as aliases, and will be used when compiling for
497497
Stable ABI versions below 3.15.
498498

0 commit comments

Comments
 (0)