Comparing a string with an int in Python 2.7.2 looks very inconsistent:
x = '12'; y = 3
print x > y # True
x = 12; y = '3'
print x > y # False
According to
How does Python compare string and int?
in Python 3 these will raise an exception. Is there a way to get Python 2 already behave that way? Looking at the__future__
I could not figure out if there is such a feature.