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 rmccampbell7
Recipients rmccampbell7
Date 2014-09-24.21:37:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411594634.83.0.710173363253.issue22487@psf.upfronthosting.co.za>
In-reply-to
Content
Is there a reason register() doesn't check for abstract methods, like subclassing does? Would it fail for some builtin classes? It seems that this would be a better guarantee that, say, something really is iterable when you check isinstance(Collections.Iterable, o), since someone could have called Collections.Iterable.register(o.__class__) without adding an __iter__ method to their class.
History
Date User Action Args
2014-09-24 21:37:14rmccampbell7setrecipients: + rmccampbell7
2014-09-24 21:37:14rmccampbell7setmessageid: <1411594634.83.0.710173363253.issue22487@psf.upfronthosting.co.za>
2014-09-24 21:37:14rmccampbell7linkissue22487 messages
2014-09-24 21:37:14rmccampbell7create