[issue10569] abc: `issubclass(, my_abstract_type)` raises exception
report at bugs.python.org
Sun Nov 28 23:22:20 CET 2010
Ram Rachum <cool-rr at cool-rr.com> added the comment:
Amaury, I am aware of what `issubclass` does and what `isinstance` does. I am not manually feeding `` into `issubclass`. I have an object which can be either a list, or a string, or a callable, or a type. And I want to check whether it's a sub-class of some base class.
So I don't think I should be taking extra precautions before using `issubclass`: If my object is not a subclass of the given base class, I should just get `False`.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list