Skip to content

bpo-43770: Inherit default tp_getattro and tp_setattro #25275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

bpo-43770: Inherit default tp_getattro and tp_setattro #25275

wants to merge 1 commit into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 8, 2021

Don't set tp_getattro and tp_setattro explicitly to
PyObject_GenericGetAttr() and PyObject_GenericSetAttr(): they are the
default.

https://bugs.python.org/issue43770

@vstinner
Copy link
Member Author

vstinner commented Apr 8, 2021

It doesn't work as expected: https://bugs.python.org/issue43770#msg390519

Don't set tp_getattro and tp_setattro explicitly to
PyObject_GenericGetAttr() and PyObject_GenericSetAttr(): they are the
default.
rhettinger
rhettinger previously approved these changes Apr 20, 2021
@rhettinger rhettinger added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 20, 2021
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @rhettinger for commit 31f39ae 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 20, 2021
@rhettinger rhettinger dismissed their stale review April 20, 2021 03:27

Fat fingered the approval

@vstinner
Copy link
Member Author

@rhettinger: this PR is supposed to have no effect, but PyType_Ready() doesn't work as expected :-( I'm still investigating why this PR has a side effect and trying to understand if it's a bug or a feature :-)

@github-actions
Copy link

github-actions bot commented Jun 3, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jun 3, 2021
@vstinner
Copy link
Member Author

This change looked like a good idea, but it caused way more problems that what I expected. I prefer to stop the work on https://bugs.python.org/issue43770

@vstinner vstinner closed this Sep 21, 2021
@vstinner vstinner deleted the object_setattro branch September 21, 2021 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge skip news stale Stale PR or inactive for long period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants