mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix SF bug [ #476852 ] Some bad macros in abstract.h
Change macros as requested by Guido
This commit is contained in:
parent
41f01994c4
commit
7c7ee5f6f6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue