Message 271132 - Python tracker

Message271132

Author ncoghlan
Recipients Martin.Teichmann, berker.peksag, gvanrossum, ncoghlan
Date 2016-07-24.05:33:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469338429.28.0.221678167636.issue27366@psf.upfronthosting.co.za>
In-reply-to
Content
Scratch that, my revised idea is fundamentally broken, as this example illustrates:

>>> class BaseClass: pass
... 
>>> class OtherClass: pass
... 
>>> class SubClass(OtherClass, BaseClass): pass
... 
>>> SubClass.mro()
[<class '__main__.SubClass'>, <class '__main__.OtherClass'>, <class '__main__.BaseClass'>, <class 'object'>]


The PEP as written handles this correctly, while the alternative signature would fail miserably ("OtherClass" wouldn't chain up to "BaseClass" properly). So I'll review the rest of the patch, and we can figure out the documentation problem later.
History
Date User Action Args
2016-07-24 05:33:49ncoghlansetrecipients: + ncoghlan, gvanrossum, berker.peksag, Martin.Teichmann
2016-07-24 05:33:49ncoghlansetmessageid: <1469338429.28.0.221678167636.issue27366@psf.upfronthosting.co.za>
2016-07-24 05:33:49ncoghlanlinkissue27366 messages
2016-07-24 05:33:49ncoghlancreate