gh-106572: Convert PyObject_DelAttr() to a function (#106611)
* Convert PyObject_DelAttr() and PyObject_DelAttrString() macros to functions. * Add PyObject_DelAttr() and PyObject_DelAttrString() functions to the stable ABI. * Replace PyObject_SetAttr(obj, name, NULL) with PyObject_DelAttr(obj, name).
This commit is contained in:
2
Python/generated_cases.c.h
generated
2
Python/generated_cases.c.h
generated
@@ -1696,7 +1696,7 @@
|
||||
PyObject *owner = stack_pointer[-1];
|
||||
#line 1242 "Python/bytecodes.c"
|
||||
PyObject *name = GETITEM(FRAME_CO_NAMES, oparg);
|
||||
int err = PyObject_SetAttr(owner, name, (PyObject *)NULL);
|
||||
int err = PyObject_DelAttr(owner, name);
|
||||
#line 1701 "Python/generated_cases.c.h"
|
||||
Py_DECREF(owner);
|
||||
#line 1245 "Python/bytecodes.c"
|
||||
|
||||
Reference in New Issue
Block a user