Path: csiph.com!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.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.074 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.01; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '12:59': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'latter': 0.22; 'parse': 0.22; 'referring': 0.22; 'slightly': 0.23; 'header:In-Reply-To:1': 0.24; 'header :User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'but': 0.36; "wasn't": 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'takes': 0.39; 'to:addr:python.org': 0.40; 'john': 0.61; 'skip:u 10': 0.61; 'charset:windows-1252': 0.62; 'course': 0.62; 'more': 0.63; 'between': 0.65; 'received:12': 0.81; 'commenting': 0.84; 'subject:value': 0.84; 'subject:Check': 0.95 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Emile van Sebille Subject: Re: Check if a given value is out of certain range Date: Thu, 1 Oct 2015 13:15:21 -0700 References: <560d78e2$0$1618$c3e8da3$5496439d@news.astraweb.com> <560d8726$0$1602$c3e8da3$5496439d@news.astraweb.com> <87r3le1ht3.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: www.westernstatesglass.com User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <87r3le1ht3.fsf@elektro.pacujo.net> 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1443730531 news.xs4all.nl 23810 [2001:888:2000:d::a6]:39343 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:97307 On 10/1/2015 12:59 PM, Marko Rauhamaa wrote: > John Gordon : > >> I wasn't commenting directly to the "ask not..." quote; I was >> referring upthread to the choice between >> >> not 0 <= x <= 10 >> >> and >> >> x < 0 or x > 10 >> >> Both are of course understandable, but in my opinion, the latter one >> takes slightly less effort to grok. > > Wouldn't > > x < 0 or 10 < x > > be even more visual? Well, I had to parse that one twice to grok it. Emile