Path: csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'model,': 0.05; 'that?': 0.05; 'cc:addr:python-list': 0.09; 'instance.': 0.09; 'objects.': 0.09; 'example:': 0.10; 'python': 0.10; 'distinct': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:reference': 0.16; 'subject:versus': 0.16; 'url:general': 0.16; 'url:gmane': 0.16; 'url:thread': 0.16; 'wrote:': 0.16; '>>>': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'sep': 0.22; 'am,': 0.23; "python's": 0.23; 'references': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'message- id:@mail.gmail.com': 0.27; '14,': 0.27; 'object,': 0.27; "can't": 0.32; 'problem': 0.33; 'url:python': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'lists': 0.34; 'received:google.com': 0.35; 'url:org': 0.36; 'subject:" ': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'why': 0.39; 'sure': 0.39; 'still': 0.40; 'per': 0.62; 'is.': 0.63; 'chrisa': 0.84; 'url:focus': 0.84; 'to:none': 0.91 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=+5Bxu9Jj0oYfty6Pn2kkC/uuH3TvD/zRYblL1Xi42X8=; b=BlMc06b/2/vwS865k/IfmKHNj/AADD5oHWD9ls/7OtLZYRN+O+sES/kCERnFF53TWX Z9l+F2D8Fp3v9HSJRhYLz+QjOwL1rSwdnAgMGRXwdAUDMqLDdj5QipPa5PmvhkIbKCYw 2bl+dSnfQjQBcMMS5sy5bRdLrI9f5iGKDiynyAkP2cj6Xfti//8zoJL+jour4hQXQkEM gTbCu4pRe6KMX69SuxaFFxkzSe96hKu64bu7tkfEt6PhzDKjI9hqVg/hrQb+9FaxS2Vz knuTyHKpIl3oaOULL6gc6iojg4OZm+G4fCV36YhbL63Pp5eMX3g8KvuFoOUqt3dr6sZL CdAg== MIME-Version: 1.0 X-Received: by 10.50.98.7 with SMTP id ee7mr13935888igb.13.1442194243565; Sun, 13 Sep 2015 18:30:43 -0700 (PDT) In-Reply-To: <87h9mx6bhk.fsf@gmail.com> References: <85mvws6z45.fsf_-_@benfinney.id.au> <85io7g6xy4.fsf@benfinney.id.au> <85egi46wng.fsf@benfinney.id.au> <1a1a1f6a-27ce-4c1b-807a-43eabaa04abb@googlegroups.com> <04ca9d7c-d02b-4329-bd94-4d18d86b3edf@googlegroups.com> <87egi375wb.fsf@gmail.com> <87wpvu5h7f.fsf@gmail.com> <55f61e8c$0$1660$c3e8da3$5496439d@news.astraweb.com> <87h9mx6bhk.fsf@gmail.com> Date: Mon, 14 Sep 2015 11:30:43 +1000 Subject: Re: Terminology: "reference" versus "pointer" 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.20+ 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442194245 news.xs4all.nl 23736 [2001:888:2000:d::a6]:53556 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 4712 X-Received-Body-CRC: 2736469153 Xref: csiph.com comp.lang.python:96543 On Mon, Sep 14, 2015 at 11:22 AM, Akira Li <4kir4.1i@gmail.com> wrote: > Steven D'Aprano writes: > >> On Mon, 14 Sep 2015 09:17 am, Akira Li wrote: >> >>> I don't see why the model that can't describe range(1) in Python 3 >>> pretends to be complete. >> >> >> Please explain. >> >> range(1) returns a range instance. What is hard about that? > > Look at the last example: > http://thread.gmane.org/gmane.comp.python.general/782626/focus=782704 Still not sure what the problem is. As per Python's object model, the lists contain references to range objects. a contains two references to the same range object, b contains references to each of two distinct range objects. What of it? ChrisA