Ammar Askar added the comment:

Is there any particular reason that datetime.strptime caches the imported 
module like that? 

>From a quick search, these two other examples don't bother with any caching: 

https://github.com/python/cpython/blob/2d264235f6e066611b412f7c2e1603866e0f7f1b/Modules/timemodule.c#L709

https://github.com/python/cpython/blob/64fe35c9fee088f7fec4dd2d760cb0026ac54ec8/Python/traceback.c#L277

----------
nosy: +ammar2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27400>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to