Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'objects.': 0.16; 'op?': 0.16; 'say.': 0.16; 'utterly': 0.16; 'sat,': 0.16; 'wrote:': 0.18; "python's": 0.19; 'feb': 0.22; 'example': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'start,': 0.30; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; '>>>>': 0.31; "i'd": 0.34; 'received:google.com': 0.35; 'level': 0.37; 'same.': 0.38; 'pm,': 0.38; 'explain': 0.39; 'enough': 0.39; 'numbers': 0.61; 'matter': 0.61; 'simple': 0.61; 'distinguish': 0.84; '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=ZRWgSrigdK9Gx/C9thakxsZC+7YdROW0+RJxZ8MPoKQ=; b=rlxJofAQd4ukhSyjiQK9LrmoC2Szdfwge35Vt1mxB9QRotCO1X1UopHa5lTd+RfV1W xB/eNU0gNhUp+EeRSMtb1kdbjcOsmU4WPZriJabYLwMQVwnDsSV0YI6zm+6Kpu44N1O0 3sNp9jdxwj8TLUwTT9n0gQs+uUEyc2f0VE8NA3vQi9stoGtl6iTsVjQmsNpX7rMka5fW 2MHq8gM1D0jgUAvJo/6LAcH2gAyodqOF4NB/mO2Ai9edYJFZsccef9US1y/wCSrx1z/6 shQCtMgQfZDutoOBasoJk/HbaavdX0XI2/evKZQwqMvBugcrZtA2PlFA7GEbuWsYqzlV kDMQ== MIME-Version: 1.0 X-Received: by 10.68.203.135 with SMTP id kq7mr12782499pbc.85.1392432135125; Fri, 14 Feb 2014 18:42:15 -0800 (PST) In-Reply-To: References: <13208de8-0f85-4e60-b059-dc087c8fda41@googlegroups.com> <917ede6d-db7c-4a8c-8203-27677283776b@googlegroups.com> <871tz5piy0.fsf@elektro.pacujo.net> <87vbwho1i0.fsf@elektro.pacujo.net> <87mwhtnzdu.fsf@elektro.pacujo.net> <59c876d3-02f5-4f5a-8728-a5098472e03d@googlegroups.com> Date: Sat, 15 Feb 2014 13:42:14 +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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392432144 news.xs4all.nl 2833 [2001:888:2000:d::a6]:56497 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66351 On Sat, Feb 15, 2014 at 1:34 PM, Rustom Mody wrote: > At what level can you explain the following? > >>>> x = 1234567 * 1234567 >>>> x > 1524155677489L Well, for a start, I'd use Python 3, so there's no need to explain why some numbers have an L after them :) > As against > >>>> x = 2*3 >>>> 6 is x > True > > "Interning" you will say. > Is interning a simple matter for example at the level of questioning of the OP? When it's utterly impossible for it to matter in any way, Python is allowed to reuse objects. I think that's simple enough to explain. There's nothing you can do to distinguish one 6 from another, so Python's allowed to have them the same. ChrisA