Author rhettinger
Recipients brett.cannon, gvanrossum, rhettinger
Date 2016-07-24.16:44:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469378679.23.0.103572212032.issue27598@psf.upfronthosting.co.za>
In-reply-to
Content
In putting together a patch for this, I noticed that the __subclasshook__ classmethods don't compose well.   I'm unclear about the semantics about what these hooks are supposed to mean for subclasses and whether there is a bug in the existing code for Set, Sequence, and Mapping.  Each of those inherits from Sized, Iterable, and Container, but only the Sized.__subclasshook__ is visible to the subclass.  Also, the code for Sized.__subclasshook__ has an identity check for Sized which doesn't seem correct from the point-of-view of the subclasses.
History
Date User Action Args
2016-07-24 16:44:39rhettingersetrecipients: + rhettinger, gvanrossum, brett.cannon
2016-07-24 16:44:39rhettingersetmessageid: <1469378679.23.0.103572212032.issue27598@psf.upfronthosting.co.za>
2016-07-24 16:44:39rhettingerlinkissue27598 messages
2016-07-24 16:44:39rhettingercreate