[issue40799] Create Lib/_pydatetime.py file to optimize "import datetime" when _datetime is available

Paul Ganssle report at bugs.python.org
Fri Jun 26 10:40:09 EDT 2020


Paul Ganssle <p.ganssle at gmail.com> added the comment:

> bout _strptime, I see that the time.strptime() imports internally the _strptime module.

Ah, sorry, my remark about including `_strptime` was off the cuff — I thought it was only used in `datetime`, which is why I said "possibly _strptime". If it's used for `time` as well, we should leave it where it is.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40799>
_______________________________________


More information about the Python-bugs-list mailing list