[Python-Dev] Python 3000 Status Update (Long!)

Guido van Rossum guido at python.org
Wed Jun 20 15:30:48 CEST 2007


On 6/20/07, Facundo Batista <facundo at taniquetil.com.ar> wrote:
> Guido van Rossum wrote:
>
> > I've written up a comprehensive status report on Python 3000. Please read:
> >
> > http://www.artima.com/weblogs/viewpost.jsp?thread=208549
>
> One doubt: In Miscellaneus you say:
>
>   Ordering comparisons (<, <=, >, >=) will raise TypeError by default
>   instead of returning arbitrary results. Equality comparisons (==, !=)
>   will compare for object identity (is, is not) by default.
>
> I *guess* that you're talking about comparisons between different
> datatypes... but you didn't explicit that in your blog.
>
> Am I right?

No. The *default* comparison always raises an exception. Of course,
most types have a comparison that does the right thing for objects of
the same type -- but they still raise an exception when compared (for
ordering) to objects of different types (except subtypes or related
types).

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list