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.

作者 eric.smith
收信人 barry, brett.cannon, eric.smith, jaraco
日期 2012-05-03.21:04:29
SpamBayes Score -1.0
Marked as misclassified
Message-id <1336079069.84.0.625762752869.issue14715@psf.upfronthosting.co.za>
In-reply-to
内容
DirsOnSysPath doesn't clear sys.path_importer_cache, so it seems you'd always want to use import_state, which does clear it.

We might also want to modify import_state to remember the original objects, not just their values. DirsOnSysPath does do this, for sys.path.

If we do this, we should probably move import_state to test.support.

Also, couldn't import_state do with sys.modules what DirsOnSysPath does with sys.path? It could restore both the object and its contents.
历史
日期 用户 动作 参数
2012-05-03 21:04:29eric.smith修改recipients: + eric.smith, barry, brett.cannon, jaraco
2012-05-03 21:04:29eric.smith修改messageid: <1336079069.84.0.625762752869.issue14715@psf.upfronthosting.co.za>
2012-05-03 21:04:29eric.smith链接issue14715 messages
2012-05-03 21:04:29eric.smith创建