Author ammar2
Recipients Denny Weinberg, ammar2, belopolsky, ncoghlan, palm.kevin
Date 2016-07-07.00:18:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467850712.24.0.875273712148.issue27400@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-07-07 00:18:32ammar2setrecipients: + ammar2, ncoghlan, belopolsky, palm.kevin, Denny Weinberg
2016-07-07 00:18:32ammar2setmessageid: <1467850712.24.0.875273712148.issue27400@psf.upfronthosting.co.za>
2016-07-07 00:18:32ammar2linkissue27400 messages
2016-07-07 00:18:31ammar2create