Deutsch   English   Français   Italiano  
<v8rqvg$16a8l$3@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.python
Subject: Re: python C-api and thread (Posting On Python-List Prohibited)
Date: Tue, 6 Aug 2024 00:32:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <v8rqvg$16a8l$3@dont-email.me>
References: <v8rfki$13c5s$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 06 Aug 2024 02:32:49 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6e0317a773c6dba529c5a1af356cf75e";
	logging-data="1255701"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/Aw9BSlLcWohjoeCwwEhj2"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:RfXfl8dvmzMw72Y79NxmBZWMoac=
Bytes: 1375

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>.