Eric V. Smith <e...@trueblade.com> added the comment:

The difference is that type(cmd) is doing an exact match on the type, while 
isinstance is checking for types or derived types. I don't know if that makes a 
difference here, but it's worth noting.

----------
nosy: +eric.smith

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44711>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to