diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-28 16:20:07 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-28 16:20:07 (GMT) |
commit | 7c7ee5f6f683cb895284122155bd830b0fd7c91e (patch) | |
tree | 08cb25e2f42e98806523f02d7f98e5383deae7af /Include | |
parent | 41f01994c41a53324f69f83585aed59288f5e0c7 (diff) | |
download | cpython-7c7ee5f6f683cb895284122155bd830b0fd7c91e.zip cpython-7c7ee5f6f683cb895284122155bd830b0fd7c91e.tar.gz cpython-7c7ee5f6f683cb895284122155bd830b0fd7c91e.tar.bz2 |
Fix SF bug [ #476852 ] Some bad macros in abstract.h
Change macros as requested by Guido
Diffstat (limited to 'Include')
-rw-r--r-- | Include/abstract.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/abstract.h b/Include/abstract.h index a710509..682c2f2 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -1112,7 +1112,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ Returns -1 on failure. This is equivalent to the Python statement: del o[key]. */ -#define PyMapping_DelItemString(O,K) PyDict_DelItemString((O),(K)) +#define PyMapping_DelItemString(O,K) PyObject_DelItemString((O),(K)) /* implemented as a macro: @@ -1122,7 +1122,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ Returns -1 on failure. This is equivalent to the Python statement: del o[key]. */ -#define PyMapping_DelItem(O,K) PyDict_DelItem((O),(K)) +#define PyMapping_DelItem(O,K) PyObject_DelItem((O),(K)) DL_IMPORT(int) PyMapping_HasKeyString(PyObject *o, char *key); |