In article <[email protected]>,
 Ben Finney <[email protected]> wrote:

> Skip Montanaro <[email protected]> writes:
> 
> > […] I was asking [Python] if a datetime instance was an instance of a
> > date. Which, it turns out, it is.
> 
> Yep. Makes sense, since ‘datetime’ can do everything ‘date’ can do, 
> and
> is conceptually a subset of the same concept.

That's reasonable, but given that, it's weird that date(2014, 1, 23) == 
datetime(2014, 1, 23) is False.  You would think it should be True, in 
the same way that 1 + 0j == 1 is True.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to