[New-bugs-announce] [issue36940] Update Py_FrozenMain() for _PyCoreConfig (PEP 587)
STINNER Victor
report at bugs.python.org
Thu May 16 11:26:17 EDT 2019
New submission from STINNER Victor <vstinner at redhat.com>:
Python/frozenmain.c should use pre-initialization and be adapted for _PyCoreConfig. Py_FrozenMain() reimplements some features which are now implemented by _Py_InitializeFromConfig():
* disable C streams (stdin, stdout, stderr) buffering
* decode argv using Py_DecodeLocale()
* set the program name (call Py_SetProgramName())
* set sys.argv
* reimplement the REPL
It seems like it could use _Py_RunMain(), but I'm not sure.
----------
components: Interpreter Core
messages: 342653
nosy: ncoghlan, steve.dower, twouters, vstinner
priority: normal
severity: normal
status: open
title: Update Py_FrozenMain() for _PyCoreConfig (PEP 587)
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36940>
_______________________________________
More information about the New-bugs-announce
mailing list