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.

classification
标题: Move imp.reload() to importlib
类型: Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
状态: closed Resolution: fixed
Dependencies: 后续:
分配给: brett.cannon 抄送列表: Arfrever, berker.peksag, brett.cannon, python-dev
优先级: normal 关键字: patch

Created on 2013-06-11 20:45 by brett.cannon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

文件
文件名 上传时间 Description 编辑
issue18193.diff berker.peksag, 2013-06-13 09:38 review
issue18193_v2.diff berker.peksag, 2013-06-14 16:30 review
issue18193_v3.diff berker.peksag, 2013-06-14 17:36 review
Messages (7)
msg190982 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) 日期: 2013-06-11 20:45
For convenience it should live directly off of importlib and not importlib.util.
msg191070 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) 日期: 2013-06-13 09:38
Here's a patch. Changes:

- Used types.ModuleType instead of type(sys)
- Updated imp and importlib docs
- Moved test_imp.ReloadTests to test_importlib.test_api.ReloadTests
msg191140 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) 日期: 2013-06-14 16:30
Updated patch adressing Brett's comments.
msg191141 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) 日期: 2013-06-14 16:55
Answered Berker's questions from the review. At this point Berker just needs to tweak one line in the test and it should then be good to go.
msg191142 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) 日期: 2013-06-14 17:41
With Berker's nice use of TestCase.subTest() I think the patch is good to go! I should hopefully get this checked in today or tomorrow.
msg191144 - (view) Author: Roundup Robot (python-dev) (Python triager) 日期: 2013-06-14 19:04
New changeset 01da7bf11ca1 by Brett Cannon in branch 'default':
Issue #18193: Add importlib.reload(), documenting (but not
http://hg.python.org/cpython/rev/01da7bf11ca1
msg191145 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) 日期: 2013-06-14 19:06
Thanks for the patch, Berker!
历史
日期 用户 动作 参数
2022-04-11 14:57:46admin修改github: 62393
2013-06-14 19:06:02brett.cannon修改状态: open -> closed
assignee: brett.cannon
消息: + msg191145

stage: commit review -> resolved
2013-06-14 19:04:36python-dev修改状态: pending -> open
抄送: + python-dev
消息: + msg191144

2013-06-14 17:41:55brett.cannon修改状态: open -> pending
resolution: fixed
消息: + msg191142

stage: patch review -> commit review
2013-06-14 17:36:09berker.peksag修改文件: + issue18193_v3.diff
2013-06-14 16:55:06brett.cannon修改消息: + msg191141
2013-06-14 16:30:27berker.peksag修改文件: + issue18193_v2.diff

消息: + msg191140
2013-06-13 09:38:35berker.peksag修改文件: + issue18193.diff

抄送: + berker.peksag
消息: + msg191070

keywords: + patch
stage: test needed -> patch review
2013-06-11 22:06:24Arfrever修改抄送: + Arfrever
2013-06-11 20:45:25brett.cannon链接issue17177 dependencies
2013-06-11 20:45:11brett.cannon创建