[issue16397] UserString doesn't combine nicely with strings

2019-12-08 Thread Phillip Schanely


Change by Phillip Schanely :


--
nosy: +pschanely

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16397] UserString doesn't combine nicely with strings

2012-11-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> works for me
stage:  -> committed/rejected

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16397] UserString doesn't combine nicely with strings

2012-11-11 Thread Jorge Cardona

Jorge Cardona added the comment:

Hi, this can be closed. 

Thanks.

--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16397] UserString doesn't combine nicely with strings

2012-11-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Jorge, can we close this or do you still have a specific suggestion.
Also, if you reply by mail, please snip previous messages as they are already 
posted.

--
nosy: +terry.reedy
type: behavior -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16397] UserString doesn't combine nicely with strings

2012-11-03 Thread Jorge Cardona

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 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 
> 
> ___
>

-- 
Jorge Eduardo Cardona

jorgeecard...@gmail.com
jo...@cardona.co

cardona.co
github.com/jorgeecardona

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16397] UserString doesn't combine nicely with strings

2012-11-03 Thread Martin v . Löwis

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16397] UserString doesn't combine nicely with strings

2012-11-03 Thread Martin v . Löwis

Martin v. Löwis added the comment:

This is not a bug, but a potential new feature. Therefore, it can go only into 
3.4 (if at all).

--
nosy: +loewis
versions:  -Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16397] UserString doesn't combine nicely with strings

2012-11-03 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
components: +Library (Lib)
nosy: +rhettinger
versions: +Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16397] UserString doesn't combine nicely with strings

2012-11-03 Thread Jorge Cardona

New submission from Jorge Cardona:

Hi,

I think UserString must play nicely with other standard objects to be useful. 
For example, right now is not possible to join a list of UserString with a 
string. 

This shouldn't fail:

   from UserString import UserString
   '.'.join([UserString('some')])

but it fails in 2.7 and it fails too with 3.2 (replacing with collections).

I'm assuming most of the user of UserString, use it as a replacement of a 
string, and it would be great to actually be able to replace strings passed to 
thid parties with userstrings. 

I imagine there would be some edge situations harder to resolve, but if someone 
is just using standard libraries it should be safe to pass a string or an 
userstring.

Bye.

--
messages: 174658
nosy: Jorge.Cardona
priority: normal
severity: normal
status: open
title: UserString doesn't combine nicely with strings
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com