Inconsistency in Python's Comparisons

Josiah Carlson jcarlson at
Thu Mar 18 04:45:36 CET 2004

> Not particularly.  Although long and float are obviously different types, I
> suspect that most people who say that they do not expect comparisons between
> different types to work, they do expect comparisons to work consistently
> between integers and floating-point values.

That is only because floats, integers and longs all represent numbers. 
It makes sense to most people to compare numbers.

  - Josiah

More information about the Python-list mailing list