|
|
|
|
|
by kbp
3210 days ago
|
|
Python 2 has some strange behaviour of its own with regards to comparing objects of different types, for example: >>> None < 0
True
>>> '0' > 0
True
Granted, this follows a much simpler rule than Javascript's comparison operators, and both throw TypeError in Python 3. |
|