diff options
author | Éric Araujo <merwok@netwok.org> | 2011-11-29 15:58:53 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-11-29 15:58:53 (GMT) |
commit | a74f8ef419d2c7c5f398a80165f8d8fd5e4d7b8e (patch) | |
tree | 70524b8d668bbe4695982cef03dcba9d1aa28a1f /Misc | |
parent | c4d7d8c49d3a78fc7eeb19588a9f44a74bec71e1 (diff) | |
download | cpython-a74f8ef419d2c7c5f398a80165f8d8fd5e4d7b8e.zip cpython-a74f8ef419d2c7c5f398a80165f8d8fd5e4d7b8e.tar.gz cpython-a74f8ef419d2c7c5f398a80165f8d8fd5e4d7b8e.tar.bz2 |
Fix inspect.getmodule to use a copy of sys.modules for iteration (#13487).
This fixes a regression compared to 2.x, where sys.modules.items()
returns a copy, as indicated by a comment in the source. Diagnosis and
patch by Erik Tollerud.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -905,6 +905,7 @@ Christian Tismer Frank J. Tobin R Lindsay Todd Bennett Todd +Erik Tollerud Matias Torchinsky Sandro Tosi Richard Townsend @@ -87,6 +87,9 @@ Core and Builtins Library ------- +- Issue #13487: Make inspect.getmodule robust against changes done to + sys.modules while it is iterating over it. + - Issue #12618: Fix a bug that prevented py_compile from creating byte compiled files in the current directory. Initial patch by Sjoerd de Vries. |