Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:object': 0.07; '>>>>': 0.09; 'covered.': 0.09; 'subject:None': 0.09; '25,': 0.12; 'keyword,': 0.16; 'none"': 0.16; 'roy': 0.16; 'cc:addr:python- list': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'cc:no real name:2**0': 0.20; 'subject:not': 0.21; 'maybe': 0.21; 'dec': 0.22; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'cc:2**0': 0.24; 'url:mailman': 0.28; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'subject:Test': 0.30; 'sun,': 0.30; 'url:listinfo': 0.32; 'instead': 0.33; 'received:209.85.160': 0.33; 'issue': 0.35; 'received:209.85.160.46': 0.35; 'received:mail- pw0-f46.google.com': 0.35; 'response': 0.35; 'url:python': 0.36; 'none': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'url:org': 0.39; 'being': 0.39; "it's": 0.40; 'received:209': 0.40; 'more': 0.61; '2011': 0.61; 'worth': 0.61; 'your': 0.61; 'believe': 0.65; 'here': 0.65; 'article': 0.74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=bJRMZqQYGspOkuTQ7DGTPFEHGZlFkkQeT8DTWOTbfPY=; b=nP6lJs4rcrqGHvI+OY3gN+SeHfGFBXL4bvKT3qw38nZMn581NjjtpLNtFXHw1fYgf0 FmgGj+30ivmwilLYArfWK7N16dWBQIcdS5V8RHtJf+TGObVbCFvEpnSKHZ0dTqVpCgJ/ VawGmqZ4gENZd261zJUhhkwU4WRo5Mr4rO4oE= MIME-Version: 1.0 In-Reply-To: References: <0d80ce25-9e65-4216-b26c-b8ee40f989a3@q9g2000yqe.googlegroups.com> From: Devin Jeanpierre Date: Sun, 25 Dec 2011 19:58:14 -0500 Subject: Re: Test None for an object that does not implement == To: Roy Smith Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324861144 news.xs4all.nl 6922 [2001:888:2000:d::a6]:34050 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17935 > Which of course leads to a SillyPEP for a new keyword, "are", which > would allow you to write: > >>>> a and c are None > > instead of the much more verbose > >>>> a is None and c is None How about: >>> a is b is None ;) -- Devin On Sun, Dec 25, 2011 at 7:27 PM, Roy Smith wrote: > In article , > =C2=A0Devin Jeanpierre wrote: > >> The issue here is that "=3D=3D None" is being used instead of "is None", >> but I believe that's been covered. Your response doesn't include it, >> so maybe it's worth restating. > > Which of course leads to a SillyPEP for a new keyword, "are", which > would allow you to write: > >>>> a and c are None > > instead of the much more verbose > >>>> a is None and c is None > -- > http://mail.python.org/mailman/listinfo/python-list