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

Ezio Melotti report at bugs.python.org
Sun Nov 20 17:09:15 CET 2011

Ezio Melotti <ezio.melotti at gmail.com> added the comment:

Is "To check for the exact type, use :func:`assertIs(type(obj), cls) <assertIs>`." better?
I think the problem this solves is clear enough even without mentioning sub/superclasses.


Python tracker <report at bugs.python.org>

More information about the docs mailing list