Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/c-api/structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down