Hacker News new | ask | show | jobs
by heavenlyblue 427 days ago
What do you expect? There are so many ways to handle this behvaiour it's pretty obvious why this is not allowed. Do you take datetime.date and then compare? Do you assume all dates are datetimes at midnight?
2 comments

The issue isn't that the comparison should be valid, the issue is that datetimes should not be dates. At best, there is a "has a" relationship, but there shouldn't be an "is a" relationship.
I think wesselbindt meant that datetimes should not inherit from dates.