Doc: c-api: fix order of PyMemberDef fields (#112879)

This commit is contained in:
Inada Naoki 2023-12-11 02:43:17 +09:00 committed by GitHub
parent eb27c9a99e
commit 42a86df3a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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 types 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 types object struct.
.. c:member:: int flags
Zero or more of the :ref:`PyMemberDef-flags`, combined using bitwise OR.