24 May
2011
24 May
'11
12:54 a.m.
On Fri, May 20, 2011 at 5:03 PM, Eric Snow <ericsnowcurrently@gmail.com>wrote:
The use case is that I want to be able to validate that a class implements all of the abstract methods of all the classes to which it has been registered.
If you're going down that road, would you be willing to write a patch for http://bugs.python.org/issue9731 along the way?
I don't have a programmatic way of discovering that set without asking every class out there.
I agree it would be nice to have a way to ask a class "which ABCs do you implement?" It would be handy for introspection and debugging purposes. -- Daniel Stutzbach