[New-bugs-announce] [issue36301] Add _Py_PreInitialize() function

STINNER Victor report at bugs.python.org
Fri Mar 15 08:29:28 EDT 2019


New submission from STINNER Victor <vstinner at redhat.com>:

Follow-up of bpo-36142, add _Py_PreInitialize() function to "pre-initialize" Python:

* initialize memory allocators
* initialize LC_CTYPE locale and UTF-8 Mode

Py_Initialize() should also be modified to no longer coerce the C locale or enable the UTF-8 Mode:
https://bugs.python.org/issue36202#msg337915

See also:

* bpo-36202: Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake
* bpo-36204: Deprecate calling Py_Main() after Py_Initialize()? Add Py_InitializeFromArgv()?

----------
components: Interpreter Core
messages: 337982
nosy: vstinner
priority: normal
severity: normal
status: open
title: Add _Py_PreInitialize() function
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36301>
_______________________________________


More information about the New-bugs-announce mailing list