Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!amsnews11.chello.com!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.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:object': 0.07; 'subject:None': 0.09; '~ethan~': 0.09; '25,': 0.12; 'cc:name:python list': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'subject:not': 0.21; 'dec': 0.22; 'header:In- Reply-To:1': 0.22; 'cc:2**0': 0.24; 'code': 0.25; 'function': 0.27; 'url:mailman': 0.28; 'message-id:@mail.gmail.com': 0.28; 'weird': 0.29; 'looks': 0.29; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'received:209.85.210.46': 0.30; 'received:mail- pz0-f46.google.com': 0.30; 'skip:\xc2 20': 0.30; 'subject:Test': 0.30; 'sun,': 0.30; 'hi,': 0.32; 'url:listinfo': 0.32; 'url:python': 0.36; 'problem.': 0.36; 'run': 0.37; 'passed': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'put': 0.38; 'url:org': 0.39; 'being': 0.39; 'why': 0.39; 'received:209': 0.40; '2011': 0.61; 'piece': 0.66; '11:27': 0.84 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=YWsNpo8rSnRkOyZx9uIIwShQVK2Ip27SikjYgVcrMCA=; b=SuU5YLDXsMYU25+wBBslhimy63U36Majad+aW7a1MAKrVRkTHXA3tyeMymbQ8X+ocl lLrI7IabDUt0Y0NOWvQ4m2WSUQbuOPTM8LPPNvTmt+PbgMr/YCXRMR9edS8eOlHWERYl CBH7+T27rFHU0VXdtmK4cMMjj6uMl42JlQ65s= MIME-Version: 1.0 In-Reply-To: <4EF7F7AC.5000500@stoneleaf.us> References: <0d80ce25-9e65-4216-b26c-b8ee40f989a3@q9g2000yqe.googlegroups.com> <4EF7F7AC.5000500@stoneleaf.us> From: Devin Jeanpierre Date: Mon, 26 Dec 2011 00:22:38 -0500 Subject: Re: Test None for an object that does not implement == To: Ethan Furman Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python list 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324877003 news.xs4all.nl 6965 [2001:888:2000:d::a6]:42891 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17949 > Um -- if you don't want a and c being passed in, why put them in the > function signature? He wants both or neither to be passed in. -- Devin On Sun, Dec 25, 2011 at 11:27 PM, Ethan Furman wrote: > GZ wrote: >> >> Hi, >> >> I run into a weird problem. I have a piece of code that looks like the >> following: >> >> f(...., a=3DNone, c=3DNone): >> =C2=A0 =C2=A0assert =C2=A0(a=3D=3DNone)=3D=3D(c=3D=3DNone) > > > > Um -- if you don't want a and c being passed in, why put them in the > function signature? > > ~Ethan~ > -- > http://mail.python.org/mailman/listinfo/python-list