In article <mailman.5913.1390515296.18130.python-l...@python.org>, Ben Finney <ben+pyt...@benfinney.id.au> wrote:
> Skip Montanaro <s...@pobox.com> 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