Skip to content

Commit 533de4b

Browse files
committed
Add a What's New in 3.15.2 entry
1 parent ec42c28 commit 533de4b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎Doc/whatsnew/3.15.rst‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2912,6 +2912,18 @@ that may require changes to your code.
29122912
Notable changes in 3.15.2
29132913
=========================
29142914

2915+
importlib
2916+
---------
2917+
2918+
* Threads that simultaneously perform first-time ``import package.submodule``
2919+
imports no longer risk a deadlock or spurious import errors, a regression
2920+
introduced in 3.15.0 by the fix for :gh:`83065`. A package's import lock is
2921+
now released as soon as its ``__init__`` returns.
2922+
:func:`importlib.import_module` now returns the partially initialized
2923+
module in a circular import split across threads, as the :keyword:`import`
2924+
statement already did, instead of raising ``_DeadlockError``.
2925+
(Contributed by Gregory P. Smith in :gh:`159963`.)
2926+
29152927
ssl
29162928
---
29172929

0 commit comments

Comments
 (0)