summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-05 10:50:30 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-05 10:50:30 (GMT)
commitb0d71d0ec6e575b7c379d55cb8366b26509ece53 (patch)
tree1066d02af103a7308a4edbf7bbcb1caa656377a9 /Include
parent7731ed47cb9adc0351c393dad2d505eb5c08d712 (diff)
downloadcpython-b0d71d0ec6e575b7c379d55cb8366b26509ece53.zip
cpython-b0d71d0ec6e575b7c379d55cb8366b26509ece53.tar.gz
cpython-b0d71d0ec6e575b7c379d55cb8366b26509ece53.tar.bz2
Implement PyObject_DelItemString. Fixes #498915.
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 682c2f2..226e5e8 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -445,6 +445,14 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(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].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*