Sujet : Re: python C-api and thread
De : rosuav (at) *nospam* gmail.com (Chris Angelico)
Groupes : comp.lang.pythonDate : 06. Aug 2024, 04:40:18
Autres entêtes
Message-ID : <mailman.22.1722912033.2890.python-list@python.org>
References : 1 2
On Tue, 6 Aug 2024 at 08:48, aotto1968 via Python-list
<
python-list@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