Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'string': 0.09; 'received:internal': 0.09; 'defer': 0.16; 'deletion': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'subject:question.': 0.16; 'subject:those': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; 'later': 0.20; 'print': 0.22; 'refers': 0.24; 'references': 0.26; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'fri,': 0.33; 'received:66': 0.35; 'knows': 0.35; 'there': 0.35; 'object,': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'from:no real name:2**0': 0.61; 'first': 0.61; "you've": 0.63; 'header:Message-Id:1': 0.63; 'refer': 0.63; 'subject:. ': 0.67; 'yes': 0.68; '20,': 0.68; '2013,': 0.91; 'subject:Are': 0.93 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= b9ZABwGsH79JBxrUHQPQ+IAwwHY=; b=b3eSXia1IGzf4bVXvCXNx5pTM2ODgRi8 dTYkbZU996rYDpyA4paJKSeQ0o5ZSnatX9nX/MVgBmjiKXYN9msVz3CxqGYi8TdN rUzkQi6mGumNvPymPsAnNUUcXC9sBYesGpnHppwc8RN0gHT59yEWo5n26vd2aMW/ cabwUooPxv4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=b9ZABwGsH79JBxrUHQPQ+IAwwHY=; b=BwU mCighY04GpNleDQKSmAz+iL5NTsGjYsEh+lGCgs2OnmBRBFGSLcNQTOOcWHoT0Eb xG7z0dgNMBFnFkBiMfNESzlJOoIEDA3B9M5b32vlkQrWJ8aPFkGTQ/HpjA3qNGyR 0VUhgtO6qCAy8TNJGOGM2nX+3KvxsW2oV2P2kzjU= X-Sasl-Enc: eGoIpl1ScwSVf5R9AZ4egO08LccBhiTD9yd4FZRUdAhG 1387553075 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-2b496f6a In-Reply-To: References: Subject: Re: Newbie question. Are those different objects ? Date: Fri, 20 Dec 2013 10:24:35 -0500 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387553077 news.xs4all.nl 2916 [2001:888:2000:d::a6]:45832 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62437 On Fri, Dec 20, 2013, at 10:16, dec135@msn.com wrote: > The second time we type print type y, how does the program knows which > one of the y's it refers to ? Is the first y object deleted ? y does not refer to the first object anymore after you've assigned the second object to it. In CPython, if there are no other references to the string object, yes it is deleted - other implementations may defer deletion to a later time.