Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'parameters': 0.04; 'subject:two': 0.07; 'none)': 0.09; 'none):': 0.09; 'subject:None': 0.09; 'b):': 0.16; 'did.': 0.16; 'grouped': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'header:In- Reply-To:1': 0.27; 'anyone': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'turn': 0.37; 'two': 0.37; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'decided': 0.64 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Vph+jzV3S0pHvsOwGzGACCTvyAqzrpyT0onQUP8oOfQ=; b=esU7pjV4174h5QogETf/kmmQWz4fug7p52a6nzOsXKscu6b3NEZNibsI/efSF54qmT cccBxod2p3P6nvFcmOBcZj8Oagj2cmxOamakocWAHpCFl53v/0rflqmOPRVlNZYNUeMy mzohyS3XMJLyTM9GT5XU6I2nbEfowIWY/uQUuc2HTeBC0FwKPS1PhYfQq4E0rxl+bpng jxnFA5miSPhQuciQjyZxTyz1fqRZIRcEL2zCr+JE6pS/Vr/yGaKonBkiXXP9hWYoJMTx 5T1Qh8S2oJGIMRwbCHlrCMIOtOcfnwMHmnYpF//KjC6HT1muKgGLb571QF2M9VacDNfq 1FUA== X-Received: by 10.180.105.65 with SMTP id gk1mr14720726wib.12.1396293747206; Mon, 31 Mar 2014 12:22:27 -0700 (PDT) Date: Mon, 31 Mar 2014 21:22:24 +0200 From: Moritz Emanuel Beber User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: checking if two things do not equal None References: <0245aca0-c6b7-493a-aa52-2c3ef6462dbd@googlegroups.com> <4e22f311-cd65-4d1a-9696-6c00127d67ec@googlegroups.com> In-Reply-To: <4e22f311-cd65-4d1a-9696-6c00127d67ec@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396293748 news.xs4all.nl 2960 [2001:888:2000:d::a6]:45896 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69441 On 31/03/14 19:28, Abe wrote: >> I couldn't see anyone else give this, but I like >> if None not in (a, b): > I did. > >> I am now considering: >> if None not in (a,b): >> or >> if (a is not None) and (b is not None): That's just if not (a is None or b is None): but you seem to have found your way. > However, I decided to just turn the two parameters into one (sequence), since they were logically grouped anyhow. > >