Add doc for Py_RETURN_NOTIMPLEMENTED, added in #12724.

This commit is contained in:
Brian Curtin 2011-08-11 09:41:31 -05:00
parent f0dda5f876
commit 49281076c1
1 changed files with 13 additions and 0 deletions

View File

@ -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