You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there already any way to pass arguments to the embedded Interpreter / PythonEngine?
For example -B to avoid bytecode or -Xmodules_freeze=off to avoid frozen modules?
Py.SetArgv() and PythonEngine.Initialize() pass arguments to sys.argv, but in case of -B, bytecode is created anyway.
There is currently no implementation for any of the config APIs (PyPreConfig, PyConfig, PyInitConfig), any addition would be appreciated. The "FFI-friendly" one, PyInitConfig, is only available in Python 3.14, though (for which we really need to get the release out of the door... :/).
Activity
filmor commentedon Feb 19, 2026
See https://docs.python.org/3.14/c-api/init_config.html.
I commented on a similar issue here #2664 (comment).
There is currently no implementation for any of the config APIs (
PyPreConfig,PyConfig,PyInitConfig), any addition would be appreciated. The "FFI-friendly" one,PyInitConfig, is only available in Python 3.14, though (for which we really need to get the release out of the door... :/).IsegrimDerGraue commentedon Feb 19, 2026
ah ... pity ...
In case of -B the flag can be set in script. But i found no workaround for the frozen modules yet.
Nevertheless ... thanks.