summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-05-24 12:05:07 (GMT)
committerBrett Cannon <brett@python.org>2013-05-24 12:05:07 (GMT)
commitc3511c1dd8737a96d97deb95b799436e8e27a2fa (patch)
tree1514bd689d9218e8df03d77892537344ed0c0e31 /Doc
parent27a4ac535f112b87d91f433eb9edcd0ae9988354 (diff)
downloadcpython-c3511c1dd8737a96d97deb95b799436e8e27a2fa.zip
cpython-c3511c1dd8737a96d97deb95b799436e8e27a2fa.tar.gz
cpython-c3511c1dd8737a96d97deb95b799436e8e27a2fa.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sys.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index e7e853d..bc1d9fe 100644
--- 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.
.. data:: path