summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-05 10:52:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-05 10:52:38 (GMT)
commitf63438ad81bc41a2bece664610c0e04608d19a0b (patch)
tree97911cee140d2d06c7c72f14074d239a1d0ea9e5 /Include
parent99dc4093428735e01646bcced69de327f4f11e51 (diff)
downloadcpython-f63438ad81bc41a2bece664610c0e04608d19a0b.zip
cpython-f63438ad81bc41a2bece664610c0e04608d19a0b.tar.gz
cpython-f63438ad81bc41a2bece664610c0e04608d19a0b.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);
/*