Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'odd': 0.07; 'subject:two': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:None': 0.09; '"is': 0.16; 'background,': 0.16; 'finney': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'variable': 0.18; 'bit': 0.19; 'seems': 0.21; 'header:User-Agent:1': 0.23; 'mathematical': 0.24; 'question': 0.24; 'asking': 0.27; 'header:X-Complaints-To:1': 0.27; 'chris': 0.29; 'are.': 0.31; 'writes:': 0.31; 'sense': 0.34; 'maybe': 0.34; 'problem': 0.35; "can't": 0.35; 'except': 0.35; 'but': 0.35; 'two': 0.37; 'ben': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'visit': 0.64; 'within': 0.65; 'between': 0.67; 'line,': 0.68; 'russian': 0.74; 'received:125': 0.84; 'soviet': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: checking if two things do not equal None Date: Sun, 30 Mar 2014 17:52:07 +1100 References: <0245aca0-c6b7-493a-aa52-2c3ef6462dbd@googlegroups.com> <5337195f$0$29994$c3e8da3$5496439d@news.astraweb.com> <53377b9e$0$29994$c3e8da3$5496439d@news.astraweb.com> <5337b182$0$29994$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xBD41714B X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:n3lUY8M/MUZ+5PVxibrNf52Y+qw= 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396162347 news.xs4all.nl 2955 [2001:888:2000:d::a6]:46633 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69379 Chris Angelico writes: > The problem isn't that I can't see what the comparisons are. It makes > very good sense to bound a variable within constants; but you already > know exactly where 2 is on the number line, so asking "Is 2 between > these two variables" seems a bit odd. Maybe it's less so with the > strong mathematical background, but it seems odd to me. I don't feel odd about asking the question “Is 2 between these two values?”. It's straightforward and concise. Can you explain better why you find it odd? -- \ “You are welcome to visit the cemetery where famous Russian and | `\ Soviet composers, artists, and writers are buried daily except | _o__) Thursday.” —Russian orthodox monastery, Moscow | Ben Finney