Skip to content

Commit 1a56de3

Browse files
committed
PEP 809: Updates from discussion
1 parent 2f03538 commit 1a56de3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

peps/pep-0809.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,18 @@ are not permitted. That is, the APIs to detect whether a particular behaviour is
157157
expected on the current Python release must have been available on all earlier
158158
releases that support the ABI.
159159

160+
Accidental changes that occur in releases should be reverted as soon as
161+
discovered, ideally without breaking regular compatibility rules. However, it is
162+
better to have `3.x.1` fix a Stable ABI issue introduced in `3.x.0` rather than
163+
to leave it present until `3.y.0`.
164+
165+
Historically, we have used clever C preprocessor constructs to try and preserve
166+
both source and binary-level compatibility, for example, by selecting macro or
167+
inline functions automatically. Under this new scheme, these should be avoided
168+
in favour of a much more direct relationship between the documented C API and
169+
the shape of the ABI. Changes can be scheduled for the next version of the ABI
170+
if they are important enough to be made.
171+
160172

161173
Opaque PyObject
162174
---------------

0 commit comments

Comments
 (0)