Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!newsfeed10.multikabel.net!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; "(i'm": 0.09; 'comparisons': 0.09; 'from:addr:python': 0.09; 'am,': 0.12; 'adopted': 0.16; 'first"': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:84.92': 0.16; 'received:84.92.122': 0.16; 'received:84.92.122.60': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'reply-to:addr:python-list': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'header:In-Reply-To:1': 0.22; 'clause': 0.23; 'sat,': 0.25; 'chris': 0.30; 'pretty': 0.30; 'implementing': 0.32; 'objects': 0.32; 'sort': 0.32; 'header:User- Agent:1': 0.33; 'to:addr:python-list': 0.33; 'received:84': 0.34; 'view,': 0.34; 'null': 0.34; 'reply-to:addr:python.org': 0.34; 'towards': 0.35; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'together.': 0.40; 'more': 0.61; 'choose': 0.62; 'header:Reply- To:1': 0.71; 'reply-to:no real name:2**0': 0.72 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=J8QoHXbS c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=9jsOeB20M3cA:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=95QSvBWzPwBvcvh1AgEA:9 a=wPNLvfGTeEIA:10 a=ExiFL-q3zkAA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Fri, 13 Jan 2012 21:06:46 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: NaN, Null, and Sorting References: <4F108050.4030407@stoneleaf.us> In-Reply-To: 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.12 Precedence: list Reply-To: python-list@python.org 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326488798 news.xs4all.nl 6967 [2001:888:2000:d::a6]:56068 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18945 On 13/01/2012 19:58, Chris Angelico wrote: > On Sat, Jan 14, 2012 at 6:04 AM, Ethan Furman wrote: >> So I am strongly leaning towards implementing the comparisons such that Null >> objects are less than other objects so they will always sort together. > > This is a perfectly plausible view, and is the one adopted by SQL (I'm > pretty sure the "NULLS FIRST" / "NULLS LAST" clause is standard - you > get to choose whether they're less than everything or more than > everything). > +1