Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72462

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <codemonkey@inbox.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.166
X-Spam-Level *
X-Spam-Evidence '*H*': 0.71; '*S*': 0.04; '"this': 0.03; 'string': 0.09; 'aquarium': 0.16; 'url:my': 0.16; 'memory': 0.22; 'question': 0.24; 'subject:) ': 0.29; 'subject:the': 0.34; 'subject: (': 0.35; 'charset:us-ascii': 0.36; 'to:addr:python- list': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'subject:"': 0.60; 'free': 0.61; 'skip:n 10': 0.64; 'different': 0.65; 'url:img': 0.74; 'url:jpg': 0.83; 'subject:being': 0.84
DomainKey-Signature q=dns; a=rsa-sha1; c=nofws; d=inbox.com; s=s1; h=mime-version:date:message-id:from:subject:to:content-type; b=bI2PmGdc+/01dUMFvfnObKBb6A7QbP5HpW+LKLOM3aYPXroT6Zq8xOyI4Kyf7RkHDqnz UlpOT1V/S4j7Ur39xFw23Iov1Nx8R26k/UThmzsX/HRyv7Zky2yhxytS3DuvG6w2EP5dkz ozD0+wUINvQeen1FAYLZOc2RvtHWj0ll4=
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; q=dns/txt; d=inbox.com; s=s1; h=mime-version:date:message-id:subject:from:to:content-type; bh=rbYnQEPn7/3XDRivqkneUa15xtXp09BWehaqj3yQ+ss=; b=l1lPYBJH4u0pUQV1Rf50kesG8nKIZkDHC62YD4jKPOKMwj9GqoQjXDXXPw3o12fDAArA akysuzalsTgWeRBH6mXl9nKWgMqmBQ+v1a1hlKwbwmo1gcjiQrzGqdKav8MvmSOLrXjmrm mIyveNMoAnC2J51PGJce2TVIxkHQce6qY=
Mime-Version 1.0
Date Mon, 2 Jun 2014 20:39:25 -0800
From Deb Wyatt <codemonkey@inbox.com>
Subject can someone explain the concept of "strings (or whatever) being immutable"
To python-list@python.org
X-Mailer INBOX.COM
X-Originating-IP 98.247.209.87
Content-Type text/html; charset=US-ASCII
Content-Transfer-Encoding quoted-printable
X-IWM-ACU kyRIpbkdFegYRNBm91sR1fP6baRA9wzZWMLsG2y2N4gkrODDQUTSExZsrJXc 4R7vBlMHI2IQdjc_V0FW_Ht36KguZxqy1PT_F3_a1AeDKMvzWrxDKPxLsR6p hAkL5c32hOetXdLQg-g@@
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10586.1401770367.18130.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1401770367 news.xs4all.nl 2932 [2001:888:2000:d::a6]:40002
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:72462

Show key headers only | View raw


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD>
<BODY>
a_string = "This is a string"<div>a_string is pointing to the above string</div><div><br></div><div>now I change the value of a_string</div><div>a_string = "This string is different"</div><div>I understand that now a_string is pointing to a different string than it was before, in a different location.</div><div><br></div><div>my question is what happens to the original string?? &nbsp;Is it still in memory somewhere, nameless?</div><div>Thanks in advance,</div><div><br></div><hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;">
<div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em">
<a href="http://www.inbox.com/marineaquarium"><img src="http://my.inbox.com/img/ftrs/marine.jpg" width="104" hight="90" alt="3D Marine Aquarium Screensaver Preview" align="left" border="0" style="margin-right:15px" /></a>
<br><strong><font color="2086c3">Free 3D Marine Aquarium Screensaver</font></strong><br>
<nobr>Watch dolphins, sharks &amp; orcas on your desktop!</nobr> <nobr>Check it out at <a href="http://www.inbox.com/marineaquarium">www.inbox.com/marineaquarium</a></nobr></div>
</BODY>
</HTML>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

can someone explain the concept of "strings (or whatever) being immutable" Deb Wyatt <codemonkey@inbox.com> - 2014-06-02 20:39 -0800

csiph-web