[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset e32e79f7d8216b78ac9e61bb1f2eee693108d4ee by Victor Stinner in branch 'master': bpo-32030: Move PYTHONPATH to _PyMainInterpreterConfig (#4511)

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Nice, thanks for that. Good call on keeping the current data types for now, so we can focus on consolidating the configuration settings first, and then look at upgrading from C level types to Python level types later. --

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: Nick: Ok, I created PR 4511. -- ___ Python tracker ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4448 ___ Python tracker ___ ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Victor, *please* don't add the external import settings to CoreConfig. That struct should only contain the absolute bare minimum of settings needed to get an interpreter that *can't* access the filesystem, such that builtin modules and

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset d4341109746aa15e1909e63b30b93b6133ffe401 by Victor Stinner in branch 'master': bpo-32030: Add _PyCoreConfig.module_search_path_env (#4504)

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4442 ___ Python tracker ___ ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 25420fe290b98171e6d30edf9350292c21ef700e by Victor Stinner in branch 'master': bpo-32030: Add more options to _PyCoreConfig (#4485) https://github.com/python/cpython/commit/25420fe290b98171e6d30edf9350292c21ef700e

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4422 ___ Python tracker ___ ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: I rewrote Py_Main() in two large commits. The code isn't perfect yet, for example, init_sys_streams() still reads the PYTHONIOENCODING environment variable. IMHO it should be read earlier. But as soon, my changes should allow to fix

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset a7368ac6360246b1ef7f8f152963c2362d272183 by Victor Stinner in branch 'master': bpo-32030: Enhance Py_Main() (#4412) https://github.com/python/cpython/commit/a7368ac6360246b1ef7f8f152963c2362d272183 --

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: Nick: """ I noticed the other day that the interaction between PYTHONWARNINGS, the `-W` option, sys.warnoptions, and _warnings.filters is a bit confusing: $ PYTHONWARNINGS=always,default python3 -Wignore -Wonce (...) >>>

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4362 ___ Python tracker ___ ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset f7e5b56c37eb859e225e886c79c5d742c567ee95 by Victor Stinner in branch 'master': bpo-32030: Split Py_Main() into subfunctions (#4399) https://github.com/python/cpython/commit/f7e5b56c37eb859e225e886c79c5d742c567ee95

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-15 Thread STINNER Victor
STINNER Victor added the comment: I wrote a new "_PyInitError" type to report more information when something goes wrong: * indicate if it's an user error: don't abort() in that case * function name where the error was raised * error message Example: --- $

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-14 Thread Nick Coghlan
Nick Coghlan added the comment: While it doesn't necessarily need to be in this patch, something else I recently realised (by breaking it *cough* [1]) is that the interaction between our command line options and our environment variables isn't really clearly defined

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-14 Thread STINNER Victor
STINNER Victor added the comment: I rewrote Py_Main() to prepare the code to be able to implement my "-X dev" idea: https://mail.python.org/pipermail/python-dev//2017-November/150514.html The problem is that currently the code parsing command line options and the

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +eric.snow, ncoghlan ___ Python tracker ___

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-14 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-14 Thread STINNER Victor
Change by STINNER Victor : -- title: Rewrite Py_Main() -> PEP 432: Rewrite Py_Main() ___ Python tracker ___

<    1   2