Skip to content
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
Update structures.rst
  • Loading branch information
ramvikrams committed Dec 7, 2022
commit f87e767a2002a6a0af56366290cdbfd3c5123841
8 changes: 4 additions & 4 deletions Doc/c-api/structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,19 +228,19 @@ Implementing functions and methods
Structure used to describe a method of an extension type. This structure has
four fields:

.. c:member:: const char* 'PyMethodDef.ml_name'
.. c:member:: const char* PyMethodDef.ml_name
Comment thread
kumaraditya303 marked this conversation as resolved.
Outdated

name of the method

.. c:member:: PyCFunction 'PyMethodDef.ml_meth'
.. c:member:: PyCFunction PyMethodDef.ml_meth

pointer to the C implementation

.. c:member:: int 'PyMethodDef.ml_flags'
.. c:member:: int PyMethodDef.ml_flags

flags bits indicating how the call should be constructed

.. c:member:: const char* 'PyMethodDef.ml_doc'
.. c:member:: const char* PyMethodDef.ml_doc

points to the contents of the docstring

Expand Down