Can a simple a==b 'hang' in and endless loop?
Fredrik Lundh
fredrik at pythonware.com
Wed Jan 18 11:27:11 EST 2006
Claudio Grondi wrote:
> As also the fact, that when
> a = [1,2.0,3L]
> b = [1.0,2,3 ]
> a==b # gives True
> even if the objects in the lists are actually different,
they all compare equal:
>>> 1 == 1.0
True
>>> 2.0 == 2
True
>>> 3L == 3
True
> or when the objects being members of the list redefine __eq__ so, that
> no matter how different they are, the lists always compare True.
wow. followups to comp.lang.funny.snake.farm
</F>
More information about the Python-list
mailing list