summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2025-06-21 08:21:50 (GMT)
committerGitHub <noreply@github.com>2025-06-21 08:21:50 (GMT)
commitfa62dfe888b0c24be603ddfd4e0137429bd79099 (patch)
tree539782414e5d8c73dcc156edfe706ae957756b54 /Python
parentb1d5e2336e9152d3770b4f457afb16db2f720894 (diff)
downloadcpython-fa62dfe888b0c24be603ddfd4e0137429bd79099.zip
cpython-fa62dfe888b0c24be603ddfd4e0137429bd79099.tar.gz
cpython-fa62dfe888b0c24be603ddfd4e0137429bd79099.tar.bz2
[3.14] gh-135645: Added `supports_isolated_interpreters` to `sys.implementation` (GH-135667) (#135786)
gh-135645: Added `supports_isolated_interpreters` to `sys.implementation` (GH-135667) (cherry picked from commit 8ca1e4d846e868a20834cf442c48a3648b558bbe) Co-authored-by: sobolevn <mail@sobolevn.me> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 7c6fd1d..511b50a 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -3606,6 +3606,18 @@ make_impl_info(PyObject *version_info)
goto error;
#endif
+ // PEP-734
+#if defined(__wasi__) || defined(__EMSCRIPTEN__)
+ // It is not enabled on WASM builds just yet
+ value = Py_False;
+#else
+ value = Py_True;
+#endif
+ res = PyDict_SetItemString(impl_info, "supports_isolated_interpreters", value);
+ if (res < 0) {
+ goto error;
+ }
+
/* dict ready */
ns = _PyNamespace_New(impl_info);