Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'expressions': 0.07; 'references,': 0.09; 'references.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; "wouldn't": 0.14; 'evaluates': 0.16; 'expression,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'intrinsic': 0.16; 'sat,': 0.16; 'language': 0.16; 'wrote:': 0.18; "python's": 0.19; 'feb': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'handled': 0.32; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'much.': 0.36; 'object,': 0.36; 'pm,': 0.38; 'evaluate': 0.72; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=+loR7GNZBos0j6H5uonTTaR5CPTjvcrqSnzghHULUUg=; b=aDnwUKlJIBY3RPfud4HvIxd2N5z+RdzVg+0x4Q7+3ctzsItc+10Sr3TbLkKMdIGLDK cS1fi0clcYePf9YIYxIiD0u/I9dNsrtL8NJltgoSFyFu9lBpwt/FPsYGN2U+YOaYzpV7 YJKWoeEhDkip1wqQOizndK9IU2Eu/runN2ZSrYTiIAy3j05/+Guq6GQTW4AjpvZaDzt0 D7r2kuJSWDyEK2MlBQD1zJax0t2BIm8qu5kEtP1AhGDjiiKBHETW9cuKT+Wal1BOyyt6 x7Qv17gkO18Jgw9ea1KcrgxBP33TLhPRzaXcO5bjsEDeeLO9/N5IZyoMfKb0e+tldaot s8EA== MIME-Version: 1.0 X-Received: by 10.68.112.164 with SMTP id ir4mr14873467pbb.153.1392467046746; Sat, 15 Feb 2014 04:24:06 -0800 (PST) In-Reply-To: References: <13208de8-0f85-4e60-b059-dc087c8fda41@googlegroups.com> <52fefccc$0$29973$c3e8da3$5496439d@news.astraweb.com> <52ff0dc5$0$29973$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 15 Feb 2014 23:24:06 +1100 Subject: Re: Explanation of list reference From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392467055 news.xs4all.nl 2915 [2001:888:2000:d::a6]:60345 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66426 On Sat, Feb 15, 2014 at 11:18 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> But yes, this is an expression, and it evaluates to a reference. > > > Well, *all* expressions in Python evaluate to references, > so that's not really saying much. Because everything in Python is an object, and objects always are handled by their references. This wouldn't be true in every language (eg it's not true of Java's unboxed types), but it's intrinsic to Python's object model. ChrisA