Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-03 Thread Cameron Simpson
On 02Jun2014 21:35, Deb Wyatt wrote: Please adjust your mailer to send plain text only. It is all you need anyway, and renders more reliably for other people. I am so sorry, I did not realize it was a problem. Hopefully it will behave now. Looks just great now. Many thanks. Cheers, Camero

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-03 Thread Mark Lawrence
On 03/06/2014 07:28, Rustom Mody wrote: On Tuesday, June 3, 2014 10:36:37 AM UTC+5:30, Deb Wyatt wrote: That was just the first question. What does immutable really mean if you can add items to a list? and concatenate strings? I don't understand enough to even ask a comprehensible question, I

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-03 Thread Steven D'Aprano
On Mon, 02 Jun 2014 21:06:37 -0800, Deb Wyatt wrote: > """a_string = "This is a string" > a_string is pointing to the above string > > now I change the value of a_string This is where English can lead us astray. "Change the value of a_string" can mean two different things. An analogy may help m

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread Rustom Mody
On Tuesday, June 3, 2014 10:36:37 AM UTC+5:30, Deb Wyatt wrote: > That was just the first question. What does immutable really mean > if you can add items to a list? and concatenate strings? I don't > understand enough to even ask a comprehensible question, I guess. It is with some pleasure that

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread Cameron Simpson
On 02Jun2014 21:06, Deb Wyatt wrote: Deb Wyatt writes: [no text] Deb, can you expand a bit – and write the question in the body of your message? It's not clear what you want explained. [...] that's strange that you see no text. The body of my email was as follows: """a_string = "This is a

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread Deb Wyatt
> > Please adjust your mailer to send plain text only. It is all you need > anyway, > and renders more reliably for other people. > > Thank you, > Cameron Simpson I am so sorry, I did not realize it was a problem. Hopefully it will behave now. Deb in WA, USA ___

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread Ben Finney
Deb Wyatt writes: > > -Original Message- > > From: b...@benfinney.id.au > > Deb, can you expand a bit – and write the question in the body of > > your message? It's not clear what you want explained. > that's strange that you see no text. A likely cause is that your message included no

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread prashanth B.G
s cleaned up. Thanks. On Tue, Jun 3, 2014 at 10:36 AM, Deb Wyatt wrote: > > > > -Original Message- > > From: b...@benfinney.id.au > > Sent: Tue, 03 Jun 2014 14:54:01 +1000 > > To: python-list@python.org > > Subject: Re: can someone explain the concep

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread Gary Herron
On 06/02/2014 09:39 PM, Deb Wyatt wrote: a_string = "This is a string" a_string is pointing to the above string now I change the value of a_string a_string = "This string is different" I understand that now a_string is pointing to a different string than it was before, in a different location.

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread Deb Wyatt
> -Original Message- > From: b...@benfinney.id.au > Sent: Tue, 03 Jun 2014 14:54:01 +1000 > To: python-list@python.org > Subject: Re: can someone explain the concept of "strings (or whatever) > being immutable" > > Deb Wyatt writes: > >> [no

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread Ben Finney
Deb Wyatt writes: > [no text] Deb, can you expand a bit – and write the question in the body of your message? It's not clear what you want explained. -- \ “I hope if dogs ever take over the world, and they chose a | `\king, they don't just go by size, because I bet there are so

Re: can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread Ian Kelly
On Jun 2, 2014 10:41 PM, "Deb Wyatt" wrote: > > a_string = "This is a string" > a_string is pointing to the above string > > now I change the value of a_string > a_string = "This string is different" > I understand that now a_string is pointing to a different string than it was before, in a differ

can someone explain the concept of "strings (or whatever) being immutable"

2014-06-02 Thread Deb Wyatt
a_string = "This is a string"a_string is pointing to the above stringnow I change the value of a_stringa_string = "This string is different"I understand that now a_string is pointing to a different string than it was before, in a different location.my question is what happens to the original st