[3.14] gh-144601: Avoid sharing exception objects raised in a PyInit function across multiple interpreters (GH-144602)#144633
Conversation
… function across multiple interpreters (pythonGH-144602) (cherry picked from commit fd6b639) Co-authored-by: Peter Bierma <[email protected]>
|
Hm, I'm very confused as to why the test is failing here, especially since this worked fine on main. I'll investigate tomorrow. |
|
Ah, found the problem. The issue is that in <3.15, there's an unused import to cpython/Lib/test/test_importlib/util.py Line 18 in bbd682d This was removed on main by #141785, but that wasn't backported. @encukou -- I'm not familiar with |
|
None that I can think of. |
|
Thanks @miss-islington for the PR, and @ZeroIntensity for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Sorry, @miss-islington and @ZeroIntensity, I could not cleanly backport this to |
…PyInit` function across multiple interpreters (pythonGH-144602) (pythonGH-144633) pythongh-144601: Avoid sharing exception objects raised in a `PyInit` function across multiple interpreters (pythonGH-144602) (cherry picked from commit fd6b639) (cherry picked from commit 907958c) Co-authored-by: Miss Islington (bot) <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
(cherry picked from commit fd6b639)
Co-authored-by: Peter Bierma [email protected]
PyInit*cause a crash in subinterpreters #144601