STINNER Victor <vstin...@python.org> added the comment:
I refactored deeply Modules/main.c and moved the code to Python/initconfig.c and Python/preconfig.c. There is now a public C API to access to all configuration parameters documented at: https://docs.python.org/dev/c-api/init_config.html The design document is the PEP 587 which has been implemented in Python 3.8. If you use the "Python Configuration", you now get the same behaviour than system Python program ("python"). Or you can use "Isolated Configuration" but opt-in for environment variables. Or you can modify PyConfig.warnoptions: https://docs.python.org/dev/c-api/init_config.html#c.PyConfig.warnoptions So you know have plently of choices to use PYTHONWARNINGS env var when you embed Python. Good news: Python 3.8 beta4 is now available for testing! ---------- nosy: +vstinner _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue14689> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com