]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: c-api: fix order of PyMemberDef fields (#112879)
authorInada Naoki <songofacandy@gmail.com>
Sun, 10 Dec 2023 17:43:17 +0000 (02:43 +0900)
committerGitHub <noreply@github.com>
Sun, 10 Dec 2023 17:43:17 +0000 (02:43 +0900)
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.