-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
bpo-14965: Proxy super().x = y
and del super().x
#26194
base: main
Are you sure you want to change the base?
bpo-14965: Proxy super().x = y
and del super().x
#26194
Conversation
This patch was originally contributed by Daniel Urban, whose summary follows: > I'm attaching a patch implementing super.__setattr__ (and > __delattr__). > The implementation in the patch only works, if super can find a data > descriptor in the MRO, otherwise it throws an AttributeError. As it > can be seen in the tests, in some cases this may result in > counter-intuitive behaviour. But I wasn't able to find another > behaviour, that is consistent with both super.__getattr__ and normal > __setattr__ semantics.
Attaching a NEWS fragment in a moment. |
This newly-failing test does appear to be related to the new method |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patch looks like Daniel Urban's super_setattr.patch
. You cannot take somebody else's code and submit it under your name. Code should be attribute to the original author. We also make sure that Daniel has signed the CLA.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Can you please explain how you’d like me to attribute it? The original
author’s name is listed in the NEWS fragment and the commit message
already.
…On Mon, May 17, 2021 at 23:03 Christian Heimes ***@***.***> wrote:
***@***.**** requested changes on this pull request.
The patch looks like Daniel Urban's super_setattr.patch. You cannot take
somebody else's code and submit it under your name. Code should be
attribute to the original author. We also make sure that Daniel has signed
the CLA.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#26194 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAFFMCRTHPUED5TKOKKDDTTOGHBXANCNFSM45A7Y27A>
.
|
In fact, I neither want nor need my name on this in the first place. This
patch has been sitting stale since 2012 without movement.
…On Mon, May 17, 2021 at 23:08 hab ***@***.***> wrote:
Can you please explain how you’d like me to attribute it? The original
author’s name is listed in the NEWS fragment and the commit message
already.
On Mon, May 17, 2021 at 23:03 Christian Heimes ***@***.***>
wrote:
> ***@***.**** requested changes on this pull request.
>
> The patch looks like Daniel Urban's super_setattr.patch. You cannot take
> somebody else's code and submit it under your name. Code should be
> attribute to the original author. We also make sure that Daniel has signed
> the CLA.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#26194 (review)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAFFMCRTHPUED5TKOKKDDTTOGHBXANCNFSM45A7Y27A>
> .
>
|
This PR is stale because it has been open for 30 days with no activity. |
What's the next step here? How can we get this merged? |
Arguably this is a bugfix, and therefore should be backported into the 3.10 branch as well.
This patch was originally contributed by Daniel Urban, whose summary
follows:
https://bugs.python.org/issue14965