]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
PyMapping_DelItem[String] are actually macros.
authorGuido van Rossum <guido@python.org>
Fri, 6 Sep 1996 13:48:38 +0000 (13:48 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 6 Sep 1996 13:48:38 +0000 (13:48 +0000)
Include/abstract.h

index a397c471bd85a6d6d21c8cd3f211088f6edea151..3211a7eda55fafac733bd1ebacd5a4a745946727 100644 (file)
@@ -762,21 +762,25 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
         this is equivalent to the Python expression: len(o).
        */
 
+     /* implemented as a macro:
+
      int PyMapping_DelItemString Py_PROTO((PyObject *o, char *key));
 
-       /*
         Remove the mapping for object, key, from the object *o.
         Returns -1 on failure.  This is equivalent to
         the Python statement: del o[key].
        */
+#define PyMapping_DelItemString(O,K) PyDict_DelItemString((O),(K))
+
+     /* implemented as a macro:
 
      int PyMapping_DelItem Py_PROTO((PyObject *o, PyObject *key));
 
-       /*
         Remove the mapping for object, key, from the object *o.
         Returns -1 on failure.  This is equivalent to
         the Python statement: del o[key].
        */
+#define PyMapping_DelItem(O,K) PyDict_DelItem((O),(K))
 
      int PyMapping_HasKeyString Py_PROTO((PyObject *o, char *key));