On 6/20/07, Facundo Batista
Guido van Rossum wrote:
I've written up a comprehensive status report on Python 3000. Please read:
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/)