This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yurzo
Recipients yurzo
Date 2020-10-01.15:54:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Last night I discovered we have alongside and


Both make semantic sense. returns a datetime, which make no semantic sense and causes confusion.

On further inspection of the code, this is due to the fact that datetime inherits from date.

so is practically an implementation of minus the "tz".

I think we should implement a only to rise an AttributeError or some other way to stop people from using the wrong semantic mental model.
We'd also need to remove the documentation entry:

From this inspection we also find that:

datetime.hour/minute/second are unnecessarily redefined.
lines Lib/ to

could be removed without any ill effect.
Date User Action Args
2020-10-01 15:54:18yurzosetrecipients: + yurzo
2020-10-01 15:54:18yurzosetmessageid: <>
2020-10-01 15:54:18yurzolinkissue41904 messages
2020-10-01 15:54:18yurzocreate