python C-api and thread

Chris Angelico rosuav at gmail.com
Mon Aug 5 22:40:18 EDT 2024


On Tue, 6 Aug 2024 at 08:48, aotto1968 via Python-list
<python-list at python.org> wrote:
>
> hi,
>
> Is it possible to run two completely independent Python interpreters in one process, each using a thread?
>
> By independent, I mean that no data is shared between the interpreters and thus the C API can be used without any other
> "lock/GIL" etc.
>

You're probably thinking of subinterpreters:

https://peps.python.org/pep-0734/

ChrisA


More information about the Python-list mailing list