Éric Araujo <mer...@netwok.org> added the comment: + To check for a specific type (without including superclasses) use + :func:`assertIs(type(obj), cls) <assertIs>`.
Don’t you mean “without accepting subclasses”, not superclasses? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13387> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com