This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients NeilGirdhar, brett.cannon, gvanrossum, levkivskyi, rhettinger, srkunze
Date 2016-08-18.15:16:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAP7+vJKWW=JMuhrC6WhyDHf4JrzP=38gSu3fpANqNXLX9D9hNA@mail.gmail.com>
In-reply-to <CAP7+vJLtSmov+ygPo5K-aNzuOdQBKhMBYO9R3XBojb4BCw2OGw@mail.gmail.com>
Content
I thought about this some more. It won't work because when a class method
is called via super(), 'cls' is still set to the derived class (and in
general for class methods that's the right thing to do, just as it is for
regular methods that self is still the actual object). If you read my
previous long comment you'll understand that all the __subclasshook__
methods carefully return NotImplemented immediately if their 'cls' argument
is not the class where they are defined. So it won't work.

I also don't see the use case (you're not supposed to do this at home,
basically).
History
Date User Action Args
2016-08-18 15:16:55gvanrossumsetrecipients: + gvanrossum, brett.cannon, rhettinger, NeilGirdhar, levkivskyi, srkunze
2016-08-18 15:16:55gvanrossumlinkissue27598 messages
2016-08-18 15:16:54gvanrossumcreate