[docs] [issue25432] isinstance documentation: explain behavior when type is a tuple

feliep report at bugs.python.org
Mon Oct 26 16:27:29 EDT 2015


feliep added the comment:

I think that the following part could replace the part of the other text that's between ###. It's more objective and easier to understand. 

classinfo may could be a tuple of type objects, or may contains others tuples that contains type objects (other sequence types are not accepted).

Return true if the object argument is an instance of the classinfo argument, or of a (direct, indirect or virtual) subclass thereof. If object is not an object of the given type, the function always returns false. ### If classinfo is not a class (type object), it may be a tuple of type objects, or may recursively contain other such tuples (other sequence types are not accepted). ### If classinfo is not a type or tuple of types and such tuples, a TypeError exception is raised.

What do you think?

----------
nosy: +felipevolpone

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25432>
_______________________________________


More information about the docs mailing list