Why is None <= 0

Aaron Watters aaron.watters at gmail.com
Fri May 2 16:05:43 EDT 2008


On Apr 25, 8:17 pm, Jon Ribbens <jon+use... at unequivocal.co.uk> wrote:
> On 2008-04-25, Martin v. Löwis <mar... at v.loewis.de> wrote:
>
> > None is smaller than anything.
>
> According to Tim Peters, this is not true.
>
> See http://bugs.python.org/issue1673405

This is unfortunate.  I would advocate
something like ordering "incomparable objects"
by the name of their type or something
similar.

When building indexing structures it can be
very nice to be able to construct a list of
heterogeneous tuples and sort them without getting
an exception.  Implementing this using L.sort(cmp) where
cmp is implemented in Python can result in
a significant speed penalty.

What's up with Tim Peters anyway?  I haven't
seen much from him for a while.
   -- Aaron Watters

===
http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=quote+tim+peters



More information about the Python-list mailing list