[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

Denis S. Otkidach report at bugs.python.org
Wed Jan 19 12:00:31 CET 2011


Denis S. Otkidach <denis.otkidach at 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 <report at bugs.python.org>
<http://bugs.python.org/issue10935>
_______________________________________


More information about the Python-bugs-list mailing list