[3.8] bpo-33418: Restore tp_clear for function object by nascheme · Pull Request #16502 · python/cpython
Conversation
This is a revert of the revert (pythonGH-15826). Having a tp_clear for functions should be safe (and helpful) now that bpo-38006 has been fixed.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
ambv
changed the title
[3.8] Restore tp_clear for function object.
[3.8] bpo-33418: Restore tp_clear for function object
For reference:
- this has never been reverted on master (3c45240 is still active there) so it doesn't need a "forward-port" there
- this feature has been there for all published prereleases of 3.8 so it's pretty well covered with tests, it's safe to restore it now
@ambv: Please replace # with GH- in the commit message next time. Thanks!
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