Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed5.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'compares': 0.09; 'confuse': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'angelico': 0.16; 'bieber': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'nan': 0.16; 'null.': 0.16; 'received:66.245': 0.16; 'received:dsl.mindspring.com': 0.16; 'received:mindspring.com': 0.16; 'received:wlfraed': 0.16; 'sense...': 0.16; 'subject:key': 0.16; 'subject:set': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; "wouldn't": 0.17; 'mon,': 0.17; 'away.': 0.23; 'null': 0.23; "doesn't": 0.25; 'url:home': 0.25; 'lee': 0.29; 'behaves': 0.30; 'equal': 0.31; 'header:X-Complaints-To:1': 0.32; 'does': 0.33; 'to:addr:python-list': 0.33; 'greatly': 0.33; 'chris': 0.34; 'itself,': 0.35; 'charset:us-ascii': 0.36; 'received:org': 0.38; 'anything': 0.38; 'though': 0.38; 'subject:: ': 0.38; 'header :Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'dennis': 0.77 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: float("nan") in set or as key Date: Sun, 29 May 2011 20:36:30 -0700 Organization: > Bestiaria Support Staff < References: <4DE1881C.8000701@mrabarnett.plus.com> <4DE285E8.4080801@mrabarnett.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: user-11fa9ub.dsl.mindspring.com X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306726601 news.xs4all.nl 49175 [::ffff:82.94.164.166]:56863 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6616 On Mon, 30 May 2011 03:50:15 +1000, Chris Angelico declaimed the following in gmane.comp.python.general: > > Doesn't matter. It still wouldn't be equal to itself, even though it > 'is' itself, which will greatly confuse anything that optimizes that > away. Numbers are well-behaved; NaN is not a number; NaN is not > well-behaved. It makes sense... in a way. As I recall, NaN behaves just like Null does in SQL... Null never compares equal to Null. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/