|
|
|
|
|
by leecb
1903 days ago
|
|
> enable multiple interpreters in a single process. CPython (the default interpreter) has had support for multiple interpreters in the same process since 1997, but it has only been exposed to the C API, and not in the language itself. Python 3.10, coming out later this year, will expose multiple interpreters in one process (subinterpreters, see PEP 554 [1]). I'm excited about what could eventually come out of this. If there is one GIL per interpreter, we could have something like the `multiprocessing` library for parallel execution, but all within one process. 1 https://www.python.org/dev/peps/pep-0554/ |
|
[0] https://www.tcl-lang.org/man/tcl8.6/ThreadCmd/thread.htm