summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-03-05 01:03:29 (GMT)
committerNed Deily <nad@python.org>2020-03-10 05:46:59 (GMT)
commit7058d2d96c5ca4dfc6c754c5cd737c6eb2a8fd67 (patch)
treef61ced2679be73cf9092c8b9d064413139630a95 /Python/pythonrun.c
parentc157edb73b234409263ca0d7b6b41ad5f0b455d6 (diff)
downloadcpython-7058d2d96c5ca4dfc6c754c5cd737c6eb2a8fd67.zip
cpython-7058d2d96c5ca4dfc6c754c5cd737c6eb2a8fd67.tar.gz
cpython-7058d2d96c5ca4dfc6c754c5cd737c6eb2a8fd67.tar.bz2
bpo-13487: Use sys.modules.copy() in inspect.getmodule() for thread safety. (GH-18786)
`list(sys.modules.items())` was apparently not immune to "dictionary changed size during iteration" errors. Tested internally using an integration test that has run into this a couple of times in the past two years. With this patch applied, the test is no longer flaky. (cherry picked from commit 85cf1d514b84dc9a4bcb40e20a12e1d82ff19f20) Co-authored-by: Gregory P. Smith <gps@google.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions