[Python-Dev] Issue 2736: datetimes and Unix timestamps
Alexander Belopolsky
alexander.belopolsky at gmail.com
Tue Jun 5 21:15:35 CEST 2012
On Tue, Jun 5, 2012 at 3:01 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> You could say the same about equally "confusing" results, yet equality never
> raises TypeError (except between datetime instances):
>
>>>> () == []
> False
And even closer to home,
>>> date(2012,6,1) == datetime(2012,6,1)
False
I agree, equality comparison should not raise an exception.
More information about the Python-Dev
mailing list