cpython: 4f8160e45cb7 (original) (raw)
Mercurial > cpython
changeset 83910:4f8160e45cb7 3.3
Issue #17953: document that sys.modules shouldn't be replaced (thanks to interp->modules) and that deleting essential items from the dict can cause Python to blow up. Thanks to Terry Reedy for coming up with initial wording and Yogesh Chaudhari for coming up with a patch using that wording in parallel to my own patch. [#17953]
Brett Cannon brett@python.org | |
---|---|
date | Fri, 24 May 2013 08:05:07 -0400 |
parents | 3c4a5dc29417 |
children | b60ae4ebf981 7935844c6737 |
files | Doc/library/sys.rst Misc/NEWS |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-)[+] [-] Doc/library/sys.rst 2 Misc/NEWS 3 |
line wrap: on
line diff
--- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -732,6 +732,8 @@ always available. This is a dictionary that maps module names to modules which have already been loaded. This can be manipulated to force reloading of modules and other tricks.
- However, replacing the dictionary will not necessarily work as expected and
- deleting essential items from the dictionary may cause Python to fail.
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -59,6 +59,9 @@ Tests Documentation ------------- +- Issue #17953: Mention that you shouldn't replace sys.modules and deleting key