mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-42528: Improve the docs of most Py*_Check{,Exact} API calls (GH-23602)
I think that none of these API calls can fail, but only few of them are documented as such. Add the sentence "This function always succeeds" (which is the same already used e.g. by PyNumber_Check) to all of them.
This commit is contained in:
parent
1a9f51ed12
commit
315fc52db1
26 changed files with 74 additions and 52 deletions
|
@ -26,7 +26,7 @@ There are a few functions specific to Python functions.
|
|||
.. c:function:: int PyFunction_Check(PyObject *o)
|
||||
|
||||
Return true if *o* is a function object (has type :c:data:`PyFunction_Type`).
|
||||
The parameter must not be ``NULL``.
|
||||
The parameter must not be ``NULL``. This function always succeeds.
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyFunction_New(PyObject *code, PyObject *globals)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue