mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[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:
parent
b1d5e2336e
commit
fa62dfe888
4 changed files with 36 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue