[Python-Dev] Issue 2736: datetimes and Unix timestamps
Guido van Rossum
guido at python.org
Tue Jun 5 21:17:58 CEST 2012
On Tue, Jun 5, 2012 at 12:15 PM, Alexander Belopolsky
<alexander.belopolsky at gmail.com> wrote:
> 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):
>>>>> () == 
> And even closer to home,
>>>> date(2012,6,1) == datetime(2012,6,1)
> I agree, equality comparison should not raise an exception.
Let's make it so.
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev