Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18938

Re: NaN, Null, and Sorting

References <4F108050.4030407@stoneleaf.us>
Date 2012-01-14 06:58 +1100
Subject Re: NaN, Null, and Sorting
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4726.1326484736.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Jan 14, 2012 at 6:04 AM, Ethan Furman <ethan@stoneleaf.us> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: NaN, Null, and Sorting Chris Angelico <rosuav@gmail.com> - 2012-01-14 06:58 +1100

csiph-web