It should probably cover:
os.uname().machine tells you whether it's wasm32 or 64, so this will be enough to calculate the host triple used for compiling.
This is a minor feature, which does not need previous discussion elsewhere
https://bytecodealliance.zulipchat.com/#narrow/channel/394175-SIG-Guest-Languages/topic/Testing.20Python.20in.20wasi-libc.27s.20CI/near/612185469
https://discuss.python.org/t/not-using-structseq-in-sys/109328 is to discuss if not using structseq is okay.
The discussion led to agreeing that using a namespace like sys.implementation and sys.abi_info made sense.
pythonGH-158628: Implement `sys._wasi_info`
GH-158628: Implement `sys._wasi_info` (GH-159039)
Activity
brettcannon commented on Oct 2, 2026
https://discuss.python.org/t/not-using-structseq-in-sys/109328 is to discuss if not using structseq is okay.
brettcannon commented on Oct 8, 2026
The discussion led to agreeing that using a namespace like sys.implementation and sys.abi_info made sense.
pythonGH-158628: Implement `sys._wasi_info`
GH-158628: Implement `sys._wasi_info` (GH-159039)