gh-106572: Deprecate PyObject_SetAttr(v, name, NULL) by vstinner · Pull Request #106573 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Conversation
vstinner
changed the title
gh-105373: Deprecate PyObject_SelAttr(v, name, NULL)
gh-105373: Deprecate PyObject_SetAttr(v, name, NULL)
vstinner
changed the title
gh-105373: Deprecate PyObject_SetAttr(v, name, NULL)
gh-106572: Deprecate PyObject_SetAttr(v, name, NULL)
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters