◐ Shell
clean mode source ↗

gh-106572: Deprecate PyObject_SetAttr(v, name, NULL) by vstinner · Pull Request #106573 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@vstinner vstinner changed the title gh-105373: Deprecate PyObject_SelAttr(v, name, NULL) gh-105373: Deprecate PyObject_SetAttr(v, name, NULL)

Jul 9, 2023

@vstinner vstinner changed the title gh-105373: Deprecate PyObject_SetAttr(v, name, NULL) gh-106572: Deprecate PyObject_SetAttr(v, name, NULL)

Jul 10, 2023

serhiy-storchaka

If the value is NULL, PyObject_SetAttr() and PyObject_SetAttrString()
emit a DeprecationWarning in Python Development Mode or if Python is
built in debug mode.

weakref proxy_setattr() calls PyObject_DelAttr() if value is NULL.

Labels