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

Antoine Pitrou report at bugs.python.org
Wed Jan 19 17:52:53 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> OK.  So he is saying that when the spec says "an object of type str" he 
> means 'type(x) is str' as opposed to 'isinstance(x, str)'.  I would
> naively have expected the latter, as other people clearly do as well.

+1 with RDM here.

> Doesn't matter how unpythonic it is: the spec calls for exact types

Can you clarify why it does?

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list