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

Andrey Popp report at bugs.python.org
Wed Jan 19 18:12:26 CET 2011


Andrey Popp <8mayday at gmail.com> added the comment:

> the spec says "an object of type str" he means 'type(x) is str' as opposed to 'isinstance(x, str)'

-1 Liskov substitution principle states, that every subtype S of type T can be used whenever type T is used.

----------
nosy: +andreypopp

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


More information about the Python-bugs-list mailing list