A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-June/119932.html below:

[Python-Dev] Issue 2736: datetimes and Unix timestamps

[Python-Dev] Issue 2736: datetimes and Unix timestampsAlexander 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4