summaryrefslogtreecommitdiffstats
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-11 09:38:22 (GMT)
committerGitHub <noreply@github.com>2023-07-11 09:38:22 (GMT)
commit1f2921b72c369b19c2e32aaedb9f8c63e0cb8b48 (patch)
tree36a45c5f49093ad3a7947593f2d35901c021f3cb /Python/generated_cases.c.h
parente6379f72cbc60f6b3c5676f9e225d4f145d5693f (diff)
downloadcpython-1f2921b72c369b19c2e32aaedb9f8c63e0cb8b48.zip
cpython-1f2921b72c369b19c2e32aaedb9f8c63e0cb8b48.tar.gz
cpython-1f2921b72c369b19c2e32aaedb9f8c63e0cb8b48.tar.bz2
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).
Diffstat (limited to 'Python/generated_cases.c.h')
-rw-r--r--Python/generated_cases.c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 11823cf..ecbf8ee 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -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"