Skip to content

Conversation

@ZeroIntensity
Copy link
Member

@ZeroIntensity ZeroIntensity commented Nov 8, 2025

Copy link
Contributor

@sharktide sharktide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggested some updates so the tone is consistent (eg. We use trailing "s" chars like "returns" but we use "Get" instead of "Gets") so we should keep the same style for consistency and to improve reading flow

I also surrounded true and false with backticks

.. c:function:: int PyCMethod_Check(PyObject *f)
Return true if *f* is an instance of the :c:type:`PyCMethod_Type` type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Return true if *f* is an instance of the :c:type:`PyCMethod_Type` type
Returns ``true`` if *f* is an instance of the :c:type:`PyCMethod_Type` type. Otherwise returns ``false``.

Comment on lines +502 to +503
Return true if *f* is an instance of the :c:type:`PyCFunction_Type` type
or a subtype of it. This function always succeeds.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Return true if *f* is an instance of the :c:type:`PyCFunction_Type` type
or a subtype of it. This function always succeeds.
Returns ``true`` if *f* is an instance of the :c:type:`PyCFunction_Type` type
or a subtype of it. Otherwise returns ``false``. This function always succeeds.

.. c:function:: int PyCFunction_GetFlags(PyObject *func)
Get the function flags on *func* as they were passed to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Get the function flags on *func* as they were passed to
Gets the function flags on *func* as they were passed to

.. c:function:: PyCFunction PyCFunction_GetFunction(PyObject *func)
Get the function pointer on *func* as it was passed to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Get the function pointer on *func* as it was passed to
Gets the function pointer on *func* as it was passed to

.. c:function:: PyObject *PyCFunction_GetSelf(PyObject *func)
Get the "self" object on *func*. This is the object that would be passed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Get the "self" object on *func*. This is the object that would be passed
Gets the "self" object on *func*. This is the object that would be passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants