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

Jean-Paul Calderone report at bugs.python.org
Thu Jan 20 14:14:24 CET 2011


Jean-Paul Calderone <invalid at example.invalid> added the comment:

> Phillip, your argument about interfacing with code written in C doesn't work for built-in immutable types like str.

Sure it does.  Definitely-str is easier to handle in C than maybe-str-subclass.  It doesn't matter that str.__new__ gets called.  Other things might get called too, with who-knows-what side-effects.

wsgi is right to demand str and only str and exactly str.

----------
nosy: +exarkun

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10935>
_______________________________________


More information about the Python-bugs-list mailing list