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

Florent Xicluna report at bugs.python.org
Sat Nov 12 20:12:25 CET 2011


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

> +1 on a doc addition (I can even volunteer a patch)

I agree we can highlight the difference between assertIs(type(obj), cls) and assertIsInstance(obj, cls) in the documentation.

Let's forget this patch and keep it simple.

----------
assignee:  -> docs at python
components: +Documentation
nosy: +docs at python
stage:  -> needs patch
title: add exact_type argument to assertIsInstance -> suggest assertIs(type(obj), cls) for exact type checking
type: feature request -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13387>
_______________________________________


More information about the docs mailing list