[Tutor] Unorderable types

Peter Otten __peter__ at web.de
Sat Aug 5 03:01:36 EDT 2017


boB Stepp wrote:

> Did the text of this error message change between Python 3.5 and 3.6?

Yes:

$ python3.5 -c '1 < ""'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: unorderable types: int() < str()

$ python3.6 -c '1 < ""'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: '<' not supported between instances of 'int' and 'str'




More information about the Tutor mailing list