Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; "(i'm": 0.09; 'comparisons': 0.09; 'am,': 0.12; 'received:209.85.210.174': 0.13; 'received:mail-iy0-f174.google.com': 0.13; 'adopted': 0.16; 'first"': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'header:In-Reply- To:1': 0.22; 'clause': 0.23; 'sat,': 0.25; 'message- id:@mail.gmail.com': 0.28; 'pretty': 0.30; 'implementing': 0.32; 'objects': 0.32; 'sort': 0.32; 'to:addr:python-list': 0.33; 'view,': 0.34; 'null': 0.34; 'towards': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'together.': 0.40; 'more': 0.61; 'choose': 0.62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/Mj2yh2JMuag2fclcmNvO8Ymg+Yf+NkxE4tpA0b6eSM=; b=nlcGBOvnazexGsOYMlYiwytwxomUaz+NQY4kuTE12eCQg0YCQbSO2MeB54H3BhH7Bt yqzOtThzdNl5IizrzizFLi1q50QkOAh8y6DyW2D0OZ5+v2pn3q6A9T9JJlJFXpzxxkU0 +qllBHy6Gz8eSweOjJC4c+0T1lVzbu+kq3jhc= MIME-Version: 1.0 In-Reply-To: <4F108050.4030407@stoneleaf.us> References: <4F108050.4030407@stoneleaf.us> Date: Sat, 14 Jan 2012 06:58:53 +1100 Subject: Re: NaN, Null, and Sorting From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326484736 news.xs4all.nl 6933 [2001:888:2000:d::a6]:45443 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18938 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). ChrisA