[issue10935] wsgiref.handlers.BaseHandler and subclasses of str
Phillip J. Eby
report at bugs.python.org
Thu Jan 20 19:39:48 CET 2011
Phillip J. Eby <pje at telecommunity.com> added the comment:
PyString_AsString() only "works on subclasses" if their internal representation is the same as type str. So we can't say "subclass of str" without *also* specifying that the subclass store its contents in exactly the same way as an object of type str... which means all we've really done is to make the specification longer and more complicated.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10935>
_______________________________________
More information about the Python-bugs-list
mailing list