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/2007-March/071835.html below:

[Python-Dev] datetime module enhancements

[Python-Dev] datetime module enhancements [Python-Dev] datetime module enhancementsJon Ribbens jon+python-dev at unequivocal.co.uk
Sat Mar 10 18:07:33 CET 2007
Robert Brewer <fumanchu at amor.org> wrote:
>    > One solution that just occurred to me -- and that
>    > skirts the issue of choosing an interpretation --
>    > is that, when comparing date and datetime objects,
>    > the datetime's .date() method is called and the
>    > result of that call is compared to the original
>    > date.
> 
>    +1
> 
>    ...and it's a decision that can be made independently
>    of how to add or subtract dates.

I don't like it. It sounds suspiciously like "when comparing integers
and floats, discard the non-integer portion of the float and then
compare as integers".
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