]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify API stability of PyTypeObject in relation to static types. (GH-96217)
authorov2k <ov2k.github@gmail.com>
Thu, 25 Aug 2022 13:32:12 +0000 (09:32 -0400)
committerGitHub <noreply@github.com>
Thu, 25 Aug 2022 13:32:12 +0000 (15:32 +0200)
Fixes:
https://github.com/python/cpython/issues/95300

Related:
https://github.com/python/cpython/issues/91271

Doc/c-api/typeobj.rst

index b8baa7c7dc39eef271b5e4911e02fb6e44cf549d..dfe91ee358d0acffc373f143b6698ec70089442d 100644 (file)
@@ -2062,9 +2062,9 @@ This results in types that are limited relative to types defined in Python:
   :ref:`sub-interpreters <sub-interpreter-support>`, so they should not
   include any subinterpreter-specific state.
 
-Also, since :c:type:`PyTypeObject` is not part of the :ref:`stable ABI <stable>`,
-any extension modules using static types must be compiled for a specific
-Python minor version.
+Also, since :c:type:`PyTypeObject` is only part of the :ref:`Limited API
+<stable>` as an opaque struct, any extension modules using static types must be
+compiled for a specific Python minor version.
 
 
 .. _heap-types: