Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Strange range Date: Sun, 3 Apr 2016 07:05:29 +1000 Lines: 10 Message-ID: References: <87y48xjwqq.fsf@elektro.pacujo.net> <56fe76f2$0$22141$c3e8da3$5496439d@news.astraweb.com> <87lh4xjt37.fsf@elektro.pacujo.net> <1671ea2b-09ff-4745-a6e7-d2c57864cba3@googlegroups.com> <87zitbpwpr.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de ZQ5aIF5HLg45hS6Y55lCsgBMshdUKUaZroskoE+9jfnw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.09; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'iterator.': 0.16; 'range,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; "haven't": 0.24; 'header :In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'there.': 0.30; 'problem': 0.33; 'surprised': 0.33; 'list': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'received:209.85.213': 0.37; 'thought': 0.37; 'received:209': 0.38; 'chrisa': 0.84; 'paradox': 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; bh=aEqqSLbmhS1cbxB6MFLILK3knwFjgyhKa3LxOZQ+SmU=; b=reKUz8zUd+psPpNqOhXoazWaVpXw9OVNfdCAMNMYkobUpS3rwNrLENoEsWPfzsRLcX /nbYenETmHMeqh/rQVUyUjJ7Xeqr7R9u+/Nq2TN44bS3L+97sbxCFGpXeirH3NEgg+SD FDhNhxCJBHfsJRZ0LZIPvaAKlvGRmlvRPJn0ATD1NQ5HUJBblbWps1HulIZfJ2V/HqjL lMUZx0YKbYzmlRT7XEJJyLmtS+1DOKtwyL1VnVZNWwO02xj39RUgZoSpgdL6LU3hkqdx ErxsHElVB12Okk9uYYIR7gaDt1rXr1GSBlrHCm6UWU/TG5/cD09t1R0WhJUTeEd38R1p SXaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=aEqqSLbmhS1cbxB6MFLILK3knwFjgyhKa3LxOZQ+SmU=; b=TBBYdPBWPKPbiuMI+vk5hxp/83a0m4PlmmkHuMPFXvIFShl6NCMHA3nh0Ghpu34OJp u4uhfnWzo0r2Ip5fcLLWDWWoWFYlh8cUTVh7uDB3KulkNMR+amiI1DggmPfnbljRMwGZ 7ZavwiujDFVOeCcAMS8wzEZwDo4+Ilvqe4bja9tF7wjpKVLnLVVDw/PFFPMSW0TxpYpd lGLF+iQZ6z13NKIdCvX9Lhj4+W6u70814QqQuyTEbjIVw8ReoCxnL7tAWRDu/yUa8+td 5oTJ/DqnBO6+9o98P2rQIgtq66zbJC5erT1iazHgzVls4AiBoEySYWqm9Q3M19BbTW5Q ZgQw== X-Gm-Message-State: AD7BkJI08YHlRU/feNHnLUNka+7+GY6IEwy6jmKry2pMCZ66vfXIqeOkZC8rbFOPfrzwzN53tLXflpxTdeu6VQ== X-Received: by 10.107.169.32 with SMTP id s32mr1684065ioe.19.1459631129235; Sat, 02 Apr 2016 14:05:29 -0700 (PDT) In-Reply-To: <87zitbpwpr.fsf@elektro.pacujo.net> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:106312 On Sun, Apr 3, 2016 at 6:44 AM, Marko Rauhamaa wrote: > I don't have a problem with a list being a "reiterable." I only was > surprised about range(), which I had thought to be a plain, > down-to-earth iterator. There's barely any other practical use for a > range, I believe. That's Blub's Paradox right there. There are lots of other uses for range(), but you just haven't used them. ChrisA