gh-135645: Added supports_isolated_interpreters to sys.implementation (#135667)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
sobolevn 2025-06-21 10:56:14 +03:00 committed by GitHub
parent f4911258a8
commit 8ca1e4d846
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 0 deletions

View file

@ -3607,6 +3607,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);