Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:object': 0.07; 'assert': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:gator410.hostgator.com': 0.09; 'subject:None': 0.09; 'to:name:python list': 0.09; '~ethan~': 0.09; 'wrote:': 0.18; 'subject:not': 0.21; 'header:In-Reply-To:1': 0.22; 'code': 0.25; 'function': 0.27; 'weird': 0.29; 'looks': 0.29; 'subject:Test': 0.30; 'skip:( 20': 0.31; 'hi,': 0.32; 'header :User-Agent:1': 0.33; 'to:addr:python-list': 0.34; 'problem.': 0.36; 'run': 0.37; 'passed': 0.37; 'received:76': 0.37; 'put': 0.38; 'being': 0.39; 'why': 0.39; 'to:addr:python.org': 0.40; 'received:websitewelcome.com': 0.64; 'piece': 0.66; 'received:184': 0.67 Date: Sun, 25 Dec 2011 20:27:24 -0800 From: Ethan Furman User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: python list Subject: Re: Test None for an object that does not implement == References: <0d80ce25-9e65-4216-b26c-b8ee40f989a3@q9g2000yqe.googlegroups.com> In-Reply-To: <0d80ce25-9e65-4216-b26c-b8ee40f989a3@q9g2000yqe.googlegroups.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: c-76-105-214-227.hsd1.or.comcast.net ([192.168.74.5]) [76.105.214.227]:1862 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 2 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324875073 news.xs4all.nl 6856 [2001:888:2000:d::a6]:41943 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17947 GZ wrote: > Hi, > > I run into a weird problem. I have a piece of code that looks like the > following: > > f(...., a=None, c=None): > assert (a==None)==(c==None) Um -- if you don't want a and c being passed in, why put them in the function signature? ~Ethan~