python - isinstance(foo,bar) vs type(foo) is bar - Stack Overflow

python - isinstance(foo,bar) vs type(foo) is bar - Stack Overflow

More to explore