Re: python C-api and thread (Posting On Python-List Prohibited)

Liste des GroupesRevenir à cl python 
Sujet : Re: python C-api and thread (Posting On Python-List Prohibited)
De : aotto1968 (at) *nospam* t-online.de (aotto1968)
Groupes : comp.lang.python
Date : 06. Aug 2024, 08:01:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8se85$1daq2$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 06.08.24 02:32, Lawrence D'Oliveiro wrote:
On Mon, 5 Aug 2024 23:19:14 +0200, aotto1968 wrote:
 
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.
 Seems like yes
<https://docs.python.org/3/c-api/init.html#c.Py_NewInterpreterFromConfig>.
→ I think that could be a solution.

Date Sujet#  Auteur
5 Aug 24 * python C-api and thread8aotto1968
6 Aug 24 +* Re: python C-api and thread (Posting On Python-List Prohibited)2Lawrence D'Oliveiro
6 Aug 24 i`- Re: python C-api and thread (Posting On Python-List Prohibited)1aotto1968
6 Aug 24 +* Re: python C-api and thread4Grant Edwards
6 Aug 24 i`* Re: python C-api and thread3aotto1968
6 Aug 24 i +- Re: python C-api and thread1Barry Scott
7 Aug 24 i `- Re: python C-api and thread (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
6 Aug 24 `- Re: python C-api and thread1Chris Angelico

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal