[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 8ca1e4d846)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-06-21 10:21:50 +02:00 committed by GitHub
parent b1d5e2336e
commit fa62dfe888
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 0 deletions

View file

@ -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);