4 ms·
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
by heavenlyblue 2y 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?
- MrJohz 2y agoThe 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.
- pkkm 2y agoI think wesselbindt meant that datetimes should not inherit from dates.
- deleted 2y ago[deleted]