8000 gh-97909 : PyMemberDef members are not marked up by Johnny11502 · Pull Request #98473 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-97909 : PyMemberDef members are not marked up #98473

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 4 commits into from
Oct 24, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Updated members of PyMemberDef
  • Loading branch information
Johnny11502 authored Oct 20, 2022
commit acdc0bc7426a8aff002f12486f18d525a882172d
13 changes: 6 additions & 7 deletions Doc/c-api/structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -408,21 +408,20 @@ Accessing attributes of extension types

.. c:member:: const char* PyMemberDef.name
.. c:member:: int PyMemberDef.type

The type of the member in the C struct.

.. c:member:: Py_ssize_t PyMemberDef.offset

The offset in bytes that the member is located on the type’s object struct.

.. c:member:: int PyMemberDef.flags

Flag bits indicating if the field should be read-only or writable.

.. c:member:: const char* PyMemberDef.doc

Points to the contents of the docstring.


:c:member:`PyMemberDef.type` can be one of many ``T_`` macros corresponding to various C
types. When the member is accessed in Python, it will be converted to the
Expand Down
0