comparison with None

Alex Martelli aleax at mac.com
Thu Apr 19 23:00:32 EDT 2007


Alan Isaac <aisaac at american.edu> wrote:

> currently documented behavior:
> "objects of different types always compare unequal".

Where is that documented?  URL please?

>>> 1.0 == 1
True
>>> type(1.0), type(1)
(<type 'float'>, <type 'int'>)

here, just as an example, are two objects of different types that
compare equal; therefore that "documented behavior" is flat wrong and
needs to be fixed.


Alex



More information about the Python-list mailing list