Deutsch   English   Français   Italiano  
<mailman.22.1722912033.2890.python-list@python.org>

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

Path: ...!feeds.phibee-telecom.net!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: Chris Angelico <rosuav@gmail.com>
Newsgroups: comp.lang.python
Subject: Re: python C-api and thread
Date: Tue, 6 Aug 2024 12:40:18 +1000
Lines: 16
Message-ID: <mailman.22.1722912033.2890.python-list@python.org>
References: <v8rfki$13c5s$1@dont-email.me>
 <CAPTjJmpeXy3NBAqy53xjTHZKiut7i1GzW2re1anfNayHaLacZg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de cUS5Fr3BSz+eTwDToq1rXwiphZkywofY+kQNvYKdd3AQ==
Cancel-Lock: sha1:FTqmYAJA4ofaDQJxATHJifhdeX8= sha256:1Z4YvVYllOtIog8cU24mnY1nEA7qxUPzVR0J8CCyGK0=
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
 reason="2048-bit key; unprotected key"
 header.d=gmail.com header.i=@gmail.com header.b=YKUBzi7s;
 dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:python': 0.06;
 'aug': 0.07; 'cc:addr:python-list': 0.09; 'url-
 ip:151.101.0.223/32': 0.09; 'url-ip:151.101.128.223/32': 0.09;
 'url-ip:151.101.192.223/32': 0.09; 'url-ip:151.101.64.223/32':
 0.09; 'cc:no real name:2**0': 0.14; '2024': 0.16; 'chrisa': 0.16;
 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
 'independent,': 0.16; 'received:mail-lf1-x131.google.com': 0.16;
 'subject:thread': 0.16; 'url:peps': 0.16; 'wrote:': 0.16;
 'python': 0.16; 'api': 0.17; 'probably': 0.17; 'tue,': 0.19;
 'cc:addr:python.org': 0.20; 'run': 0.23; 'cc:2**0': 0.25;
 'thinking': 0.28; 'python-list': 0.32; 'message-
 id:@mail.gmail.com': 0.32; 'mean': 0.34; 'header:In-Reply-To:1':
 0.34; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.35;
 'using': 0.37; 'two': 0.39; 'shared': 0.39; 'url-ip:151.101.0/24':
 0.62; 'url-ip:151.101.128/24': 0.62; 'url-ip:151.101.192/24':
 0.62; 'url-ip:151.101.64/24': 0.62; 'between': 0.63; 'thus': 0.64;
 'independent': 0.65; 'process,': 0.75; 'interpreters': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1722912031; x=1723516831; darn=python.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=X0V2n2j7R8FvqFb80NgBHz5QWmQFl/4TrzeBsDDsc9o=;
 b=YKUBzi7s66sedGckw/c0Xtyq/CBKvDobHZ48fuNNTVfhmHcBZyNRXV6n7a3erZKQbL
 NTjK6YskzgOaUt3uVTGIEloncUV2jxqwf6hOWUPDL8cb93OTUjAmRX8Nwcluz4Ar1PU2
 FXU+uN3TNG2Uv+L5O1FucyfgRoLxcP4RLwu+WBUxRp+xkNOLTh3VNjXODRwAcmFxLgy7
 ZcQq1Zglb1S9VQhWuEhJpJe06MNOA3Y53WXK3MC/MOXeilrq6xe3mmt0yLdd8jQkvlTg
 TdukwXldUxw6tGbWQtXyIQeVXGG3GBp+sc/jaeU2pCegua0tB+Bp/amU/6a0tXeBHFri
 0PBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1722912031; x=1723516831;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=X0V2n2j7R8FvqFb80NgBHz5QWmQFl/4TrzeBsDDsc9o=;
 b=MNg5QYCQ/8D5eMX5a1wIUB2AvX8QohINtfxmmtgCDFsxz+vSPBiF6eWQ68ZOxzXSSS
 9TE8xlmvssy9+CM/Dj0oBMV+4RNcHozIqEyp2NDvJePVDYyG+OM+Y9V1s1hZ9VG5DjJY
 u0egn0jjCCwHaf8cGOvPPyYOmzs5LaK4Ki6tLJ6m26apjg65MsPxF1WeeTYqKskQBgcu
 8fESlsWcmwe/ad6492B4SPsZ3ptAj9wEoQlTA0c/HU8vlAa8W6PY3GYV5He1uBEQAp+w
 TovvLzVnhcc6ngiv9P1PqhG7sBMTdWrSk2s/KEqSVC4SRx9cN9XVHr4PGrnPa3hv7P3n
 H0KQ==
X-Gm-Message-State: AOJu0Yyy0m4RQzXgJretYtDpfOtn2GLqooU57hSy86ugC3Px6fxqyXv2
 eJYG+jI+1x7RYC0lSsDzb2ySrSN4uLOEz9bYbwEEIHec47XpBAVpZkoFYAucBQOIgusYFKBcWJF
 6nmlzvb5caRpeyzB6HwBcCcp7fegsLR5i
X-Google-Smtp-Source: AGHT+IE0deVHg3+1xZJFnZWV4ZGFHmYtIvQFzrBUnAA0017QjirG51jQnsMYqTlE5XmmES62fEo3sVh4EzTzJH+lXqc=
X-Received: by 2002:a05:6512:acf:b0:52e:9b2f:c313 with SMTP id
 2adb3069b0e04-530bb3781famr9332097e87.22.1722912030103; Mon, 05 Aug 2024
 19:40:30 -0700 (PDT)
In-Reply-To: <v8rfki$13c5s$1@dont-email.me>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
 <python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
 <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
 <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmpeXy3NBAqy53xjTHZKiut7i1GzW2re1anfNayHaLacZg@mail.gmail.com>
X-Mailman-Original-References: <v8rfki$13c5s$1@dont-email.me>
Bytes: 5237

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