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 alexgarel, brett.cannon, chris.jerdonek, michael.foord, r.david.murray, rbcollins, slmnhq
Date 2012-06-03.23:13:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338765211.57.0.283673025083.issue7559@psf.upfronthosting.co.za>
In-reply-to
Content
Not sure what DirsOnSysPath is, but I have been only calling importlib.invalidate_caches() as needed in order to not slow down tests needlessly.

And as for detecting an environment change as necessary, that's essentially impossible since it's only needed if something changed between imports which would require adding a hook to notice that an import happened *and* a directory already covered by sys.path_importer_cache (not sys.path since that doesn't cover packages) changed w/o calling invalidate_caches().
History
Date User Action Args
2012-06-03 23:13:31brett.cannonsetrecipients: + brett.cannon, rbcollins, r.david.murray, michael.foord, slmnhq, chris.jerdonek, alexgarel
2012-06-03 23:13:31brett.cannonsetmessageid: <1338765211.57.0.283673025083.issue7559@psf.upfronthosting.co.za>
2012-06-03 23:13:31brett.cannonlinkissue7559 messages
2012-06-03 23:13:30brett.cannoncreate