]> granicus.if.org Git - python/commit
Issue #9260: A finer-grained import lock.
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 17 May 2012 16:55:59 +0000 (18:55 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 17 May 2012 16:55:59 +0000 (18:55 +0200)
commitea3eb88bcaef775c8f2bbe310053f9990a8c9ea7
tree9461ae28e833a95a79cc4811df68435bf0e00fc3
parent5cec9d2ae57da6fb5c424bb297ddb67902393b2d
Issue #9260: A finer-grained import lock.

Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
12 files changed:
Doc/c-api/import.rst
Doc/library/imp.rst
Lib/importlib/_bootstrap.py
Lib/importlib/test/test_locks.py [new file with mode: 0644]
Lib/pydoc.py
Lib/test/lock_tests.py
Lib/test/test_pkg.py
Lib/test/test_threaded_import.py
Lib/token.py
Misc/NEWS
Python/import.c
Python/importlib.h