Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

You are right. And thanks to the time machine, python 3.0 already forbid
such comparisons:

>>> a.b < 0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unorderable types: method() < int()

The behaviour cannot change for the 2.x series, though - it would break
backward compatibility. python2.6 however has a "-3" option that prints
a warning in this case:

>>> a.b < 0
__main__:1: DeprecationWarning: comparing unequal types not supported in 3.x

----------
nosy: +amaury.forgeotdarc
resolution:  -> works for me
status: open -> closed

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3828>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to