[BangPypers] Should equality (__eq__) be dependent on the typeof object?
Shabda Raaj
shabda at agiliq.com
Tue Sep 10 07:54:26 CEST 2013
> I'd expect it to be False. There will be a small amount of time between
the two invocations and the time will change
Ok, that makes sense. Should have written a better test case. What about
this.
>>> datetime.datetime(2013, 1, 1) == datetime.date(2013, 1, 1)
False
>>> datetime.datetime.today() == datetime.date.today()
False
>>>
More information about the BangPypers
mailing list