We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 257a1d0 commit 7d2f9e1Copy full SHA for 7d2f9e1
Include/object.h
@@ -792,6 +792,10 @@ not implemented for a given type combination.
792
PyAPI_DATA(PyObject) _Py_NotImplementedStruct; /* Don't use this directly */
793
#define Py_NotImplemented (&_Py_NotImplementedStruct)
794
795
+/* Macro for returning Py_NotImplemented from a function */
796
+#define Py_RETURN_NOTIMPLEMENTED \
797
+ return Py_INCREF(Py_NotImplemented), Py_NotImplemented
798
+
799
/* Rich comparison opcodes */
800
#define Py_LT 0
801
#define Py_LE 1
0 commit comments