bpo-44131: Py_FrozenMain() uses PyConfig_SetBytesArgv() by vstinner · Pull Request #26201 · python/cpython
Conversation
Moreover, Py_FrozenMain() relies on Py_InitializeFromConfig() to
handle the PYTHONUNBUFFERED environment variable and configure C
stdio streams like stdout (make the stream unbuffered).
@corona10: Would you mind to review this change?
Moreover, Py_FrozenMain() relies on Py_InitializeFromConfig() to handle the PYTHONUNBUFFERED environment variable and configure C stdio streams like stdout (make the stream unbuffered).
PR rebased on top of commit 6ba6d06 fix.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks for the review @corona10.
It's a pleasure to remove code which calls directly Py_DecodeLocale() without preinitializing Python :-p
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters