[Python-checkins] CVS: python/dist/src/Include abstract.h,2.42,2.42.6.1
Martin v. L?wis
loewis@users.sourceforge.net
Sat, 05 Jan 2002 02:52:40 -0800
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv25934/Include
Modified Files:
Tag: release22-maint
abstract.h
Log Message:
Implement PyObject_DelItemString. Fixes #498915.
Index: abstract.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.42.6.1
diff -C2 -d -r2.42 -r2.42.6.1
*** abstract.h 2001/11/28 16:20:07 2.42
--- abstract.h 2002/01/05 10:52:38 2.42.6.1
***************
*** 446,449 ****
--- 446,457 ----
*/
+ 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);