[issue13387] add exact_type argument to assertIsInstance
Michael Foord
report at bugs.python.org
Sat Nov 12 18:49:15 CET 2011
Michael Foord <michael at voidspace.org.uk> added the comment:
I think your proposed workaround is good enough and no extra effort to type than the suggested change to assertIsInstance.
-1 on a new method
I think the behaviour of isinstance is clear enough that people who misunderstand what assertIsInstance is doing have a problem with basic Python - and will continue to make the mistake whatever we do to assertIsInstance.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13387>
_______________________________________
More information about the Python-bugs-list
mailing list