Denis S. Otkidach <denis.otkid...@gmail.com> added the comment:

Current behavior is unpythonic: documentation explicitly mentions isinstance as 
preferred way to check type (see http://docs.python.org/library/types.html ).

Also 2.7 is the last minor version with str as "main" string type. So I believe 
it should use isinstance(val, basestring) to help transition to Python 3.

----------
nosy: +ods

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

Reply via email to