Repository navigation
Add _Py_PreInitialize() function #80482
Copy link
Copy link
Closed
Labels
3.8 (EOL)end of lifeend of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
Description
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = <Date 2019-03-26.23:55:16.532>
created_at = <Date 2019-03-15.12:29:28.556>
labels = ['interpreter-core', '3.8']
title = 'Add _Py_PreInitialize() function'
updated_at = <Date 2019-04-05.09:44:09.603>
user = 'https://github.com/vstinner'bugs.python.org fields:
activity = <Date 2019-04-05.09:44:09.603>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2019-03-26.23:55:16.532>
closer = 'vstinner'
components = ['Interpreter Core']
creation = <Date 2019-03-15.12:29:28.556>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 36301
keywords = ['patch']
message_count = 20.0
messages = ['337982', '337991', '337993', '338287', '338303', '338428', '338440', '338484', '338664', '338809', '338810', '338814', '338829', '338837', '338846', '338895', '338903', '338923', '338925', '339483']
nosy_count = 1.0
nosy_names = ['vstinner']
pr_nums = ['12343', '12347', '12350', '12351', '12420', '12422', '12457', '12458', '12506', '12535', '12536', '12540', '12542', '12546', '12563', '12569', '12695']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue36301'
versions = ['Python 3.8']Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.8 (EOL)end of lifeend of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
Activity
vstinner commentedon Mar 15, 2019
Follow-up of bpo-36142, add _Py_PreInitialize() function to "pre-initialize" Python:
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:
vstinner commentedon Mar 15, 2019
New changeset 74f6568 by Victor Stinner in branch 'master':
bpo-36301: Add _PyWstrList structure (GH-12343)
74f6568
vstinner commentedon Mar 15, 2019
New changeset 6259976 by Victor Stinner in branch 'master':
bpo-36301: _PyCoreConfig_Read() ensures that argv is not empty (GH-12347)
6259976
vstinner commentedon Mar 18, 2019
New changeset c183444 by Victor Stinner in branch 'master':
bpo-36301: Fix Py_Main() memory leaks (GH-12420)
c183444
vstinner commentedon Mar 19, 2019
New changeset 5f9cf23 by Victor Stinner in branch 'master':
bpo-36301: Error if decoding pybuilddir.txt fails (GH-12422)
5f9cf23
vstinner commentedon Mar 20, 2019
New changeset f29084d by Victor Stinner in branch 'master':
bpo-36301: Add _PyRuntime.pre_initialized (GH-12457)
f29084d
vstinner commentedon Mar 20, 2019
New changeset fa15376 by Victor Stinner in branch 'master':
bpo-36301: Add _PyPreCmdline internal API (GH-12458)
fa15376
vstinner commentedon Mar 20, 2019
In term of API, we get something like:
Py_Finalize();vstinner commentedon Mar 23, 2019
New changeset 6d5ee97 by Victor Stinner in branch 'master':
bpo-36301: Add _PyRuntimeState.preconfig (GH-12506)
6d5ee97
vstinner commentedon Mar 25, 2019
New changeset f72346c by Victor Stinner in branch 'master':
bpo-36301: Cleanup preconfig code (GH-12535)
f72346c
vstinner commentedon Mar 25, 2019
Note for myself: is there a problem between the priority of PYTHONHOME env var and pybuilddir.txt configuration file?
vstinner commentedon Mar 25, 2019
New changeset a6fbc4e by Victor Stinner in branch 'master':
bpo-36301: Add _Py_PreInitializeFromConfig() (GH-12536)
a6fbc4e
vstinner commentedon Mar 25, 2019
New changeset 1075d16 by Victor Stinner in branch 'master':
bpo-36301: Add _Py_GetConfigsAsDict() function (GH-12540)
1075d16
vstinner commentedon Mar 25, 2019
New changeset f78a5e9 by Victor Stinner in branch 'master':
bpo-36301: Add _Py_GetEnv() function (GH-12542)
f78a5e9
vstinner commentedon Mar 26, 2019
New changeset 2000495 by Victor Stinner in branch 'master':
bpo-36301: Remove _PyCoreConfig.preconfig (GH-12546)
2000495
vstinner commentedon Mar 26, 2019
Note for myself: PYTHONDEVMODE=1, PreConfig isolated=1, CoreConfig isolated=0: is the dev mode enabled or not? IMHO it should not. Maybe add a specific unit test?
vstinner commentedon Mar 26, 2019
New changeset f8ba6f5 by Victor Stinner in branch 'master':
bpo-36301: Cleanup preconfig.c and coreconfig.c (GH-12563)
f8ba6f5
vstinner commentedon Mar 26, 2019
I created a follow-up issue: bpo-36443.
--
PR 12569 adds these tests.
vstinner commentedon Mar 26, 2019
The feature has been implemented, I close the issue. The work is continued in other issues.
vstinner commentedon Apr 5, 2019
New changeset 6a8c313 by Victor Stinner in branch 'master':
bpo-36301: Fix _PyPreConfig_Read() compiler warning (GH-12695)
6a8c313