mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add doc for Py_RETURN_NOTIMPLEMENTED, added in #12724.
This commit is contained in:
parent
f0dda5f876
commit
49281076c1
1 changed files with 13 additions and 0 deletions
|
@ -6,6 +6,19 @@ Object Protocol
|
|||
===============
|
||||
|
||||
|
||||
.. c:var:: PyObject* Py_NotImplemented
|
||||
|
||||
The ``NotImplemented`` singleton, used to signal that an operation is
|
||||
not implemented for the given type combination.
|
||||
|
||||
|
||||
.. c:macro:: Py_RETURN_NOTIMPLEMENTED
|
||||
|
||||
Properly handle returning :c:data:`Py_NotImplemented` from within a C
|
||||
function (that is, increment the reference count of NotImplemented and
|
||||
return it).
|
||||
|
||||
|
||||
.. c:function:: int PyObject_Print(PyObject *o, FILE *fp, int flags)
|
||||
|
||||
Print an object *o*, on file *fp*. Returns ``-1`` on error. The flags argument
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue