Jason R. Coombs added the comment:

Vajrasky, you're right. Comparing against type(obj) is an anti-pattern. 
isinstance is better. Duck typing is even better (in many cases).

----------

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

Reply via email to