Ram Rachum <cool...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10569>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to