[issue16397] UserString doesn't combine nicely with strings

Jorge Cardona report at bugs.python.org
Sat Nov 3 19:47:43 CET 2012


Jorge Cardona added the comment:

mm, I thought that was impossible, and that I should be using UserString
actually. I didn't notice the big warning at the beginning of the section
at the docs.

Sorry, I will change my code.

Thanks.

On Sat, Nov 3, 2012 at 2:33 PM, Martin v. Löwis <report at bugs.python.org>wrote:

>
> Martin v. Löwis added the comment:
>
> If you want a class that behaves like a string object, you should subclass
> from str.
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue16397>
> _______________________________________
>

-- 
Jorge Eduardo Cardona

jorgeecardona at gmail.com
jorge at cardona.co

cardona.co
github.com/jorgeecardona

----------

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


More information about the Python-bugs-list mailing list