MRAB wrote:

>  >>> (lambda arg: arg) == (lambda arg: arg)
> False

curious...
I somehow thinked that, whereas

>>> (lambda: 0) is (lambda: 0)
should be False (obviously)

>>> (lambda: 0) == (lambda: 0)
could be True... maybe because `{} == {} and {} is not {}` (also for [])

-- 
By ZeD

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to