mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-135645: Added supports_isolated_interpreters
to sys.implementation
(#135667)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
parent
f4911258a8
commit
8ca1e4d846
4 changed files with 36 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue