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 brett.cannon
Recipients SilentGhost, brett.cannon, eric.snow, ncoghlan, rjdymond
Date 2015-02-09.15:45:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1423496749.96.0.399713096563.issue23412@psf.upfronthosting.co.za>
In-reply-to
Content
Because stat results are cached for performance reasons, it's possible to write to the file system and then try to read/import from it before the modification time for the directory even picks up that there was a change. For this reason there is importlib.invalidate_caches(): https://docs.python.org/3/library/importlib.html#importlib.invalidate_caches .

I have opened http://bugs.python.org/issue23422 to track that the docs for importlib.import_module() point out invalidate_caches().
History
Date User Action Args
2015-02-09 15:45:49brett.cannonsetrecipients: + brett.cannon, ncoghlan, SilentGhost, eric.snow, rjdymond
2015-02-09 15:45:49brett.cannonsetmessageid: <1423496749.96.0.399713096563.issue23412@psf.upfronthosting.co.za>
2015-02-09 15:45:49brett.cannonlinkissue23412 messages
2015-02-09 15:45:49brett.cannoncreate