Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ethan Furman Newsgroups: comp.lang.python Subject: Re: Strange range Date: Sun, 03 Apr 2016 09:28:19 -0700 Lines: 35 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> <87vb3zpu49.fsf@elektro.pacujo.net> <87shz3p4a5.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 6bUYTgldveQ1+8GmRvnsdAi40n6HLtJeMXF9ryKRqn2g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'failing': 0.05; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'python': 0.10; 'python.': 0.11; 'argument': 0.15; 'inaccessible': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'stdlib.': 0.16; 'which,': 0.16; 'wrote:': 0.16; 'exists': 0.18; '>>>': 0.20; 'library': 0.20; 'fine,': 0.22; 'stephen': 0.22; 'uses.': 0.22; 'trying': 0.22; '(or': 0.23; 'seems': 0.23; 'sat,': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'least': 0.27; '(it': 0.29; 'pep': 0.29; '~ethan~': 0.29; "i'm": 0.30; 'code': 0.30; 'related': 0.32; 'computer.': 0.32; 'topic': 0.32; 'point': 0.33; 'besides': 0.35; 'something': 0.35; "isn't": 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'someone': 0.38; 'why': 0.39; 'sure': 0.39; 'well.': 0.40; 'to:addr:python.org': 0.40; 'easy': 0.60; 'entire': 0.61; 'charset:windows-1252': 0.62; 'more': 0.63; 'obvious': 0.76; 'idiomatic': 0.84 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <87shz3p4a5.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:106376 On 04/02/2016 11:58 PM, Marko Rauhamaa wrote: > Stephen Hansen : > >> On Sat, Apr 2, 2016, at 02:40 PM, Marko Rauhamaa wrote: >>> That's why I was looking for counterexamples in the standard library >> >> This entire bent of an argument seems flawed to me. >> >> The standard library has never been a beacon for best practices or >> idiomatic uses of Python. > > It's an obvious corpus of Python code not written by me that's readily > available on my computer. An argument was made that range() has varied > uses. I was trying to find those varied uses. Which is fine, but failing to find them is insignificant. >> Most code exists outside the stdlib. > > Which should then make it easy for you to point out the kinds of > counterexamples I was looking for. I'm pretty sure that 99+% of the non-stdlib code out there is also completely inaccessible (or at least inconveniently accessible) to Stephen as well. Besides which, the amount of extra effort someone else is willing to go to to prove something is directly related to the interestingness of the topic -- and the various uses of range() isn't that interesting (it would be more interesting if a PEP was on the line...) . -- ~Ethan~