Skip to content
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 (updated) #29950

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 7, 2021

  1. Proxy super().x = y and del super().x

    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.
    
    Co-authored-by: hab <_@habnab.it>
    Co-authored-by: Markus Kitsinger (SwooshyCueb) <root@swooshalicio.us>
    3 people committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    b955e79 View commit details
    Browse the repository at this point in the history