[docs] [issue13387] suggest assertIs(type(obj), cls) for exact type checking

Éric Araujo report at bugs.python.org
Sun Nov 20 15:28:03 CET 2011

Éric Araujo <merwok at netwok.org> added the comment:

No, I’m not talking about a rephrasing, but on a full change of meaning.  I don’t understand your use of “superclasses” at all; isinstance(x, T) checks if x is an instance of T or any subclass, am I wrong?


Python tracker <report at bugs.python.org>

More information about the docs mailing list