Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

It is too late is the life of UserString for a design change, so I'm going to 
have to close this as more likely to harm existing code than to benefit future 
code.

Also, despite you expectations, this isn't atypical for Python classes.  For 
example, the __add__ method on integer subclasses returns actual ints rather 
than instances of the subclass.

In the case of UserString, the current design can be useful because it make 
UserString instances more substitutable for regular strings.

----------
nosy: +rhettinger
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39354>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to