-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
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.
Lines 2642 to 2648 in 2fbd396
| /* Warn the user if they forgot to clean up subinterpreters. */ | |
| (void)PyErr_WarnEx( | |
| PyExc_RuntimeWarning, | |
| "remaining subinterpreters; " | |
| "destroy them with _interpreters.destroy()", | |
| 0); | |
@ZeroIntensity @ericsnowcurrently What do you think?
If yes, I'm ready to fix this.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Todo