SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72150 0 56 Python

gh-76785: Handle Legacy Interpreters Properly (gh-117490)

This is similar to the situation with threading._DummyThread.  The methods (incl. __del__()) of interpreters.Interpreter objects must be careful with interpreters not created by interpreters.create().  The simplest thing to start with is to disable any method that modifies or runs in the interpreter.  As part of this, the runtime keeps track of where an interpreter was created.  We also handle interpreter "refcounts" properly.
E
Eric Snow committed
fd259fdabe95329768eb3e90039c77888c130a4c
Parent: fd2bab9
Committed by GitHub <noreply@github.com> on 4/11/2024, 11:23:25 PM