summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2017-09-04 23:54:09 (GMT)
committerGitHub <noreply@github.com>2017-09-04 23:54:09 (GMT)
commit86b7afdfeee77993fe896a2aa13b3f4f95973f16 (patch)
treea37fbb7233319c671e4787bff683629148cab971 /Misc
parentf5ea83f4864232fecc042ff0d1c2401807b19280 (diff)
downloadcpython-86b7afdfeee77993fe896a2aa13b3f4f95973f16.zip
cpython-86b7afdfeee77993fe896a2aa13b3f4f95973f16.tar.gz
cpython-86b7afdfeee77993fe896a2aa13b3f4f95973f16.tar.bz2
bpo-28411: Remove "modules" field from Py_InterpreterState. (#1638)
sys.modules is the one true source.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2017-09-04-10-46-09.bpo-28411.IU9rQL.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2017-09-04-10-46-09.bpo-28411.IU9rQL.rst b/Misc/NEWS.d/next/Core and Builtins/2017-09-04-10-46-09.bpo-28411.IU9rQL.rst
new file mode 100644
index 0000000..2417f78
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2017-09-04-10-46-09.bpo-28411.IU9rQL.rst
@@ -0,0 +1,4 @@
+``PyInterpreterState`` has a "modules" field that is copied into
+``sys.modules`` during interpreter startup. This causes problems if a
+program replaces ``sys.modules`` with something else. To solve this we
+eliminate ``PyInterpreterState.modules``.