finalize_subinterpreters checks if remaining subinterpreters are present and if so suggest to destroy them via destroy method of internal _interpreters module. I propose to change the warning message to use Interpeter.close as it less confusing.
cpython/Python/pylifecycle.c
Lines 2642 to 2648 in 2fbd396
@ZeroIntensity @ericsnowcurrently What do you think?
If yes, I'm ready to fix this.
CPython main branch
No response
I think it'd be fine to change it, yeah. Eric added that warning long before concurrent.interpreters was a thing.
GH-141509: Fix warning about remaining subinterpreters (GH-141528)
[3.14] pythonGH-141509: Fix warning about remaining subinterpreters (p…
[3.14] GH-141509: Fix warning about remaining subinterpreters (GH-141528
PR merged and backported. Closing this now. Thanks!
pythonGH-141509: Fix warning about remaining subinterpreters (pythonG…
Activity
ZeroIntensity commented on Nov 13, 2025
I think it'd be fine to change it, yeah. Eric added that warning long before concurrent.interpreters was a thing.
GH-141509: Fix warning about remaining subinterpreters (GH-141528)
[3.14] pythonGH-141509: Fix warning about remaining subinterpreters (p…
[3.14] GH-141509: Fix warning about remaining subinterpreters (GH-141528
sergey-miryanov commented on Nov 15, 2025
PR merged and backported. Closing this now.
Thanks!
pythonGH-141509: Fix warning about remaining subinterpreters (pythonG…