On 2008-11-12 16:10, Antoine Pitrou wrote:
> M.-A. Lemburg <mal <at> egenix.com> writes:
>> The difference is that None is a singleton, so the set of all
>> None type instances is {None}. You always have an intuitive total order
>> relation on one element sets: the identity relation.
>
> But it's not what you are asking for. You are asking for None to support
> ordered
> comparison with objects of other types, which is completely different.
>
> Having None be comparable with itself for ordered comparisons is certainly
> possible, but it's also completely useless if None doesn't compare with other
> types, which is what we are talking about.
I should have probably made it clearer in my posting:
Having None < None fail is another different (and a lot more
insignificant) problem.
It would be solved by having None added to a consistent Python
object ordering scheme, but is not a consequence of not having
a consistent general object ordering scheme.
So far, I haven't heard a single argument for why not having None
participate in an ordering scheme is a good strategy to use, except
that it's pure. IMHO, practicality beats purity in this special
case.
Anyway, like I said: it's one more thing to add to the list of
surprises in Python 3.0.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Nov 13 2008)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com