GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — gh-156762: Fix tp_clear slot signature for operator.methodcaller by ashm-dev · Pull Request #156769 · python/cpython Conversation
|
|
@sergey-miryanov, could you please take a look at this PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vstinner one-line tp_clear signature fix, approved by Sergey, CI green. Needs a core review. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sadly, the modified code is not tested by python -m test test_operator, so if the code is modified in the future, we can fail to catch regressions.
Please add a test to test_operator which does something like:
import gc, operator class C: pass c = C() c.m = operator.methodcaller('foo', c) del c gc.collect()
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vstinner Thanks for the review. The test has been added. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <[email protected]>
|
The Docs CI failed with an error that I don't understand: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
GH-157448 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @ashm-dev and @vstinner, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-157449 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…er() (GH-156769) (#157449) gh-156762: Fix tp_clear slot signature for operator.methodcaller() (GH-156769) (cherry picked from commit a4ca6e8) Co-authored-by: Shamil <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…r() (python#156769) Co-authored-by: Victor Stinner <[email protected]>
…er() (GH-156769) (#157448) Co-authored-by: Shamil <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.