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


Groups > comp.lang.python > #62437

Re: Newbie question. Are those different objects ?

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 <random832@fastmail.us>
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 <af844bcf-ed55-42da-8a9f-b8270dcc4028@googlegroups.com>
References <af844bcf-ed55-42da-8a9f-b8270dcc4028@googlegroups.com>
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 <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.4435.1387553077.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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.

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


Thread

Newbie question. Are those different objects ? dec135@msn.com - 2013-12-20 07:16 -0800
  Re: Newbie question. Are those different objects ? random832@fastmail.us - 2013-12-20 10:24 -0500
  Re: Newbie question. Are those different objects ? rusi <rustompmody@gmail.com> - 2013-12-20 07:34 -0800
    Re: Newbie question. Are those different objects ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-20 16:00 +0000
      Re: Newbie question. Are those different objects ? rusi <rustompmody@gmail.com> - 2013-12-20 09:10 -0800
        Re: Newbie question. Are those different objects ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-20 17:29 +0000
        Re: Newbie question. Are those different objects ? 88888 Dihedral <dihedral88888@gmail.com> - 2013-12-20 09:59 -0800
        Re: Newbie question. Are those different objects ? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-21 10:56 +1300
          Re: Newbie question. Are those different objects ? Duncan Booth <duncan.booth@invalid.invalid> - 2013-12-23 08:19 +0000
      Re: Newbie question. Are those different objects ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-21 12:58 +0000
        Re: Newbie question. Are those different objects ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-21 11:54 -0500
        Re: Newbie question. Are those different objects ? Chris Angelico <rosuav@gmail.com> - 2013-12-22 05:39 +1100
        Re: Newbie question. Are those different objects ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-21 19:17 +0000
      Re: Newbie question. Are those different objects ? alex23 <wuwei23@gmail.com> - 2013-12-23 11:31 +1000
    Re: Newbie question. Are those different objects ? Travis Griggs <travisgriggs@gmail.com> - 2013-12-20 10:24 -0800
  Re: Newbie question. Are those different objects ? bob gailer <bgailer@gmail.com> - 2013-12-20 12:02 -0500
  Re: Newbie question. Are those different objects ? rurpy@yahoo.com - 2013-12-20 10:06 -0800
  Re: Newbie question. Are those different objects ? Terry Reedy <tjreedy@udel.edu> - 2013-12-20 16:56 -0500
  Re: Newbie question. Are those different objects ? Gene Heskett <gheskett@wdtv.com> - 2013-12-21 14:08 -0500

csiph-web