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 r.david.murray
Recipients Claudiu.Popa, r.david.murray, terry.reedy, the.mulhern
Date 2014-03-18.14:05:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395151525.21.0.932875238415.issue20897@psf.upfronthosting.co.za>
In-reply-to
Content
The fact that you say the method is "_junk(self)" and say the other classes don't override it makes me think you are thinking that methods with the same name are different from a subclasses perspective if they have different signatures.  In Python this is not true.  You cannot have methods with the same name and different signatures in the same class, so in Python "override" means "has a method with the same name".  Therefore the implementation is currently behaving in accordance with the documentation.

Checking for compatible signatures would be a new feature by our rules regardless of whether it is considered an API bug or not.  This is because it could cause existing working programs to break, and so can't be changed in a maintenance release.

I think I agree with Terry that this should be discussed on python-ideas first, although insofar as ABCs are useful, it seems like a reasonable feature to me.  And probably not hard to do now that we have signature objects.
History
Date User Action Args
2014-03-18 14:05:25r.david.murraysetrecipients: + r.david.murray, terry.reedy, Claudiu.Popa, the.mulhern
2014-03-18 14:05:25r.david.murraysetmessageid: <1395151525.21.0.932875238415.issue20897@psf.upfronthosting.co.za>
2014-03-18 14:05:25r.david.murraylinkissue20897 messages
2014-03-18 14:05:24r.david.murraycreate