[issue36301] Add _Py_PreInitialize() function

2019-04-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6a8c3139ae9ada89d4a95985ec7cf8bb7d03bc01 by Victor Stinner in branch 'master': bpo-36301: Fix _PyPreConfig_Read() compiler warning (GH-12695) https://github.com/python/cpython/commit/6a8c3139ae9ada89d4a95985ec7cf8bb7d03bc01 --

[issue36301] Add _Py_PreInitialize() function

2019-04-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12620 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: The feature has been implemented, I close the issue. The work is continued in other issues. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: I created a follow-up issue: bpo-36443. -- > 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? PR 12569 adds these tests. --

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12514 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset f8ba6f5afc317d1be3025db1be410ac66a7e5a27 by Victor Stinner in branch 'master': bpo-36301: Cleanup preconfig.c and coreconfig.c (GH-12563) https://github.com/python/cpython/commit/f8ba6f5afc317d1be3025db1be410ac66a7e5a27 --

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
STINNER Victor added the comment: 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? -- ___ Python tracker

[issue36301] Add _Py_PreInitialize() function

2019-03-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12508 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 20004959d23d07ac784eef51ecb161012180faa8 by Victor Stinner in branch 'master': bpo-36301: Remove _PyCoreConfig.preconfig (GH-12546) https://github.com/python/cpython/commit/20004959d23d07ac784eef51ecb161012180faa8 --

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12495 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f78a5e9ce8f32a195f5f788aade79578437f30a6 by Victor Stinner in branch 'master': bpo-36301: Add _Py_GetEnv() function (GH-12542) https://github.com/python/cpython/commit/f78a5e9ce8f32a195f5f788aade79578437f30a6 --

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12491 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1075d1684ab84dc7c28d93cfb46e95e70d3b6d3b by Victor Stinner in branch 'master': bpo-36301: Add _Py_GetConfigsAsDict() function (GH-12540) https://github.com/python/cpython/commit/1075d1684ab84dc7c28d93cfb46e95e70d3b6d3b --

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12489 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101 by Victor Stinner in branch 'master': bpo-36301: Add _Py_PreInitializeFromConfig() (GH-12536) https://github.com/python/cpython/commit/a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101 --

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12486 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: is there a problem between the priority of PYTHONHOME env var and pybuilddir.txt configuration file? -- ___ Python tracker

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f72346c47537657a287a862305f65eb5d7594fbf by Victor Stinner in branch 'master': bpo-36301: Cleanup preconfig code (GH-12535) https://github.com/python/cpython/commit/f72346c47537657a287a862305f65eb5d7594fbf --

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12485 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6d5ee973f0600a3a9444f569dcf0dd346bfa2a11 by Victor Stinner in branch 'master': bpo-36301: Add _PyRuntimeState.preconfig (GH-12506) https://github.com/python/cpython/commit/6d5ee973f0600a3a9444f569dcf0dd346bfa2a11 --

[issue36301] Add _Py_PreInitialize() function

2019-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12457 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-20 Thread STINNER Victor
STINNER Victor added the comment: In term of API, we get something like: _PyInitError err; _PyPreConfig preconfig = _PyPreConfig_INIT; preconfig.utf8_mode = 1; preconfig.allocator = "malloc"; _PyInitError err = _Py_PreInitializeFromPreConfig(); if

[issue36301] Add _Py_PreInitialize() function

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset fa1537684869186da7938e4330361bf02363bac8 by Victor Stinner in branch 'master': bpo-36301: Add _PyPreCmdline internal API (GH-12458) https://github.com/python/cpython/commit/fa1537684869186da7938e4330361bf02363bac8 --

[issue36301] Add _Py_PreInitialize() function

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12411 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset f29084d611a6ca504c99a0967371374febf0ccc3 by Victor Stinner in branch 'master': bpo-36301: Add _PyRuntime.pre_initialized (GH-12457) https://github.com/python/cpython/commit/f29084d611a6ca504c99a0967371374febf0ccc3 --

[issue36301] Add _Py_PreInitialize() function

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12410 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5f9cf23502febe0eb3bc02e45c7d2bfc79424757 by Victor Stinner in branch 'master': bpo-36301: Error if decoding pybuilddir.txt fails (GH-12422) https://github.com/python/cpython/commit/5f9cf23502febe0eb3bc02e45c7d2bfc79424757 --

[issue36301] Add _Py_PreInitialize() function

2019-03-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12377 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset c183444f7e2640b054956474d71aae6e8d31a543 by Victor Stinner in branch 'master': bpo-36301: Fix Py_Main() memory leaks (GH-12420) https://github.com/python/cpython/commit/c183444f7e2640b054956474d71aae6e8d31a543 --

[issue36301] Add _Py_PreInitialize() function

2019-03-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12374 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12317 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12316 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 625997622b4736e9184bdd8bf1e22a7b51be1afc by Victor Stinner in branch 'master': bpo-36301: _PyCoreConfig_Read() ensures that argv is not empty (GH-12347) https://github.com/python/cpython/commit/625997622b4736e9184bdd8bf1e22a7b51be1afc

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12313 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 74f6568bbd3e70806ea3219e8bacb386ad802ccf by Victor Stinner in branch 'master': bpo-36301: Add _PyWstrList structure (GH-12343) https://github.com/python/cpython/commit/74f6568bbd3e70806ea3219e8bacb386ad802ccf --

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12310 stage: -> patch review ___ Python tracker ___ ___

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
New submission from STINNER Victor : 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