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/119935.html below:

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

[Python-Dev] Issue 2736: datetimes and Unix timestampsAlexandre Zani alexandre.zani at gmail.com
Tue Jun 5 23:05:49 CEST 2012
Good point.

On Tue, Jun 5, 2012 at 12:17 PM, Guido van Rossum <guido at python.org> wrote:
> 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):
>>>
>>>>>> () == []
>>> False
>>
>> And even closer to home,
>>
>>>>> date(2012,6,1) == datetime(2012,6,1)
>> False
>>
>> I agree, equality comparison should not raise an exception.
>
> Let's make it so.
>
> --
> --Guido van Rossum (python.org/~guido)
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/alexandre.zani%40gmail.com
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