◐ Shell
reader mode source ↗
Skip to content

[3.8] bpo-33418: Restore tp_clear for function object#16502

Merged
ambv merged 1 commit into
python:3.8from
nascheme:restore_func_tp_clear
Oct 1, 2019
Merged

[3.8] bpo-33418: Restore tp_clear for function object#16502
ambv merged 1 commit into
python:3.8from
nascheme:restore_func_tp_clear

Conversation

@nascheme

@nascheme nascheme commented Sep 30, 2019

Copy link
Copy Markdown
Member

This is a revert of the revert (GH-15826, ccaea52). Having a tp_clear for
functions should be safe (and helpful) now that bpo-38006 has been fixed.

https://bugs.python.org/issue33418

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.

@tim-one tim-one left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

LGTM!

@ambv ambv changed the title [3.8] Restore tp_clear for function object. Oct 1, 2019
@ambv ambv removed the skip issue label Oct 1, 2019
@ambv

ambv commented Oct 1, 2019

Copy link
Copy Markdown
Contributor

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 ambv merged commit b361207 into python:3.8 Oct 1, 2019
@bedevere-bot

Copy link
Copy Markdown

@ambv: Please replace # with GH- in the commit message next time. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants