Currently modules from the CPython standard library that are not supported, such as,
cannot be imported in CPython wasm environment, meaning that every time one of those is imported in a Python package, it needs to be patched, which is time consuming.
The question is, could it be beneficial to add some mechanism to allow imports of these modules (and of the functions/classes they contain), then error when any of these functions classes are actually used? The difference is that in a user package, the failure would happen for the unsupported functionality instead of for the whole package at import time (short of patching it).
Currently modules from the CPython standard library that are not supported, such as,
cannot be imported in CPython wasm environment, meaning that every time one of those is imported in a Python package, it needs to be patched, which is time consuming.
The question is, could it be beneficial to add some mechanism to allow imports of these modules (and of the functions/classes they contain), then error when any of these functions classes are actually used? The difference is that in a user package, the failure would happen for the unsupported functionality instead of for the whole package at import time (short of patching it).