summaryrefslogtreecommitdiffstats
path: root/Include/abstract.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-06 13:48:38 (GMT)
committerGuido van Rossum <guido@python.org>1996-09-06 13:48:38 (GMT)
commita25e5e9ae9ac71100d07c5e5617a19415440a228 (patch)
treef870febeaa6c6c0fecf9369bfda3c392ab7aafa9 /Include/abstract.h
parented227f0589e3a84eef48ca93616c6c178671d36d (diff)
downloadcpython-a25e5e9ae9ac71100d07c5e5617a19415440a228.zip
cpython-a25e5e9ae9ac71100d07c5e5617a19415440a228.tar.gz
cpython-a25e5e9ae9ac71100d07c5e5617a19415440a228.tar.bz2
PyMapping_DelItem[String] are actually macros.
Diffstat (limited to 'Include/abstract.h')
-rw-r--r--Include/abstract.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index a397c47..3211a7e 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -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));