summaryrefslogtreecommitdiff
path: root/Doc/c-api/object.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-18 19:29:06 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-18 19:29:06 +0100
commit5c2b6c1fc611cca464a8b42c1472fa180a2fd09d (patch)
treebb425b5c9fbcba04adb0cf51a4bb7450d15df4eb /Doc/c-api/object.rst
parent0eb4aa847cd4a61b443072f6fae843c7203cc474 (diff)
parent0da3531a6234054d1da980a506c27f35a2c45046 (diff)
downloadcpython-5c2b6c1fc611cca464a8b42c1472fa180a2fd09d.tar.gz
Issue #7502: Fix equality comparison for DocTestCase instances.
Patch by Cédric Krier.
Diffstat (limited to 'Doc/c-api/object.rst')
-rw-r--r--Doc/c-api/object.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index d0d45ad001..88ba5ac0c4 100644
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -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