[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>
<http://bugs.python.org/issue13387>
_______________________________________


More information about the Python-bugs-list mailing list