]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: c-api: fix order of PyMemberDef fields (GH-112879)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 Dec 2023 17:50:05 +0000 (18:50 +0100)
committerGitHub <noreply@github.com>
Sun, 10 Dec 2023 17:50:05 +0000 (17:50 +0000)
Doc: c-api: fix order of PyMemberDef fields (GH-112879)
(cherry picked from commit 42a86df3a376a77a94ffe6b4011a82cf51dc336a)

Doc/c-api/structures.rst

index 528813c255c0a57d28c11c6e1603a7e16076dd04..7d82f7839dfcd76270d5b3e9fa44074e088e07be 100644 (file)
@@ -419,15 +419,15 @@ Accessing attributes of extension types
 
          The string should be static, no copy is made of it.
 
-   .. c:member:: Py_ssize_t offset
-
-      The offset in bytes that the member is located on the type’s object struct.
-
    .. c:member:: int type
 
       The type of the member in the C struct.
       See :ref:`PyMemberDef-types` for the possible values.
 
+   .. c:member:: Py_ssize_t offset
+
+      The offset in bytes that the member is located on the type’s object struct.
+
    .. c:member:: int flags
 
       Zero or more of the :ref:`PyMemberDef-flags`, combined using bitwise OR.