mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
27a4ac535f
commit
c3511c1dd8
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue