[issue22257] PEP 432: Redesign the interpreter startup sequence

2019-09-25 Thread STINNER Victor
STINNER Victor added the comment: The PEP 587 has been implemented in Python 3.8 with a "Multi-Phase Initialization Private Provisional API": https://docs.python.org/dev/c-api/init_config.html#multi-phase-initialization-private-provisional-api I suggest to close this issue. When somone will w

[issue22257] PEP 432: Redesign the interpreter startup sequence

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Update: my PEP 587 has been accepted and I implemented it in bpo-36763. -- ___ Python tracker ___ ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Update: I proposed the PEP 587 to expose the _PyCoreConfig API in public. -- ___ Python tracker ___ _

[issue22257] PEP 432: Redesign the interpreter startup sequence

2018-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, this is the issue for making the API public, so it will stay open until PEP 432 is actually accepted. We switched to the pre-implement-changes-as-an-internal-CPython-refactoring approach after we/I realised there was no feasible way to develop and maintain

[issue22257] PEP 432: Redesign the interpreter startup sequence

2018-03-23 Thread Ned Deily
Ned Deily added the comment: See Issue33128: PathFinder is twice on sys.meta_path. Also, is this issue supposed to remain open across releases? -- nosy: +ned.deily ___ Python tracker

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 1b46131ae423f43d45947bb48844cf82f6fd82b8 by Nick Coghlan in branch 'master': bpo-22257: Mention startup refactoring in What's New (GH-4286) https://github.com/python/cpython/commit/1b46131ae423f43d45947bb48844cf82f6fd82b8 --

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-11-04 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: +4248 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-11-04 Thread Nick Coghlan
Nick Coghlan added the comment: Bug report (since resolved) that highlighted our general lack of test coverage for the interactions between environment variable based configuration and command line based configuration: https://bugs.python.org/issue31845 This work revealed the absence, since t

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-06-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab1cb80b435a34e4f908c97cd2f3a7fe8add6505 by Victor Stinner (Stéphane Wirtel) in branch 'master': bpo-30547: Fix multiple reference leaks (#1995) https://github.com/python/cpython/commit/ab1cb80b435a34e4f908c97cd2f3a7fe8add6505 -- nosy: +

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-06-08 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2061 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-25 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1903 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Eric Snow added the comment: New changeset c7ec9985bbdbb2b073f2c37febd18268817da29a by Eric Snow in branch 'master': bpo-22257: Private C-API for main interpreter initialization (PEP 432). (#1729) https://github.com/python/cpython/commit/c7ec9985bbdbb2b073f2c37febd18268817da29a -- __

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Eric Snow added the comment: New changeset 1abcf6700b4da6207fe859de40c6c1bada6b4fec by Eric Snow in branch 'master': bpo-22257: Private C-API for core runtime initialization (PEP 432). (#1772) https://github.com/python/cpython/commit/1abcf6700b4da6207fe859de40c6c1bada6b4fec -- __

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1853 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Eric Snow added the comment: reverting the change to that test: https://github.com/python/cpython/pull/1770 -- ___ Python tracker ___ ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1852 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Eric Snow added the comment: New changeset e0918ecf93a458d4e005650f816d64654e73fc2a by Eric Snow in branch 'master': bpo-22257: Fix CLI by using int instead of char (compares to EOF). (#1765) https://github.com/python/cpython/commit/e0918ecf93a458d4e005650f816d64654e73fc2a -- ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change should be reverted. Lib/test/coding20731.py intentionally should have the CRLF lines separator. -- ___ Python tracker ___ ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1846 status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Eric Snow added the comment: The change in Lib/test/coding20731.py was the result of running PCbuild/fix_encoding.py. -- status: open -> pending ___ Python tracker ___ _

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review type: -> enhancement versions: +Python 3.7 -Python 3.5 ___ Python tracker ___ __

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why Lib/test/coding20731.py was changed? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Pyt

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Eric Snow
Eric Snow added the comment: New changeset 6b4be195cd8868b76eb6fbe166acc39beee8ce36 by Eric Snow in branch 'master': bpo-22257: Small changes for PEP 432. (#1728) https://github.com/python/cpython/commit/6b4be195cd8868b76eb6fbe166acc39beee8ce36 --

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1819 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1818 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22257] PEP 432: Redesign the interpreter startup sequence

2016-09-09 Thread Eric Snow
Eric Snow added the comment: It may be worth refactoring the patch relative to the new C99 support. -- nosy: +eric.snow ___ Python tracker ___ ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2016-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: Looking at the potential impact of being able to use C99 initializers for the main configuration structs, I realised those could be a *lot* easier to work with if they consisted entirely of pointers to Python objects: * NULL initialisation would correctly indica

[issue22257] PEP 432: Redesign the interpreter startup sequence

2016-06-03 Thread Nick Coghlan
Nick Coghlan added the comment: I merged the current 3.6 dev branch into the BitBucket PEP 432 branch in my CPython sandbox. The attached patch is the diff between that branch and CPython default. All of the proposed changes here should only affect private APIs now, allowing this to be handle

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-11-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-11-14 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 22869 now covers the preparatory refactoring to split pythonrun into two modules. -- dependencies: +Split pylifecycle.c out from pythonrun.c ___ Python tracker ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-09-07 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-31 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the reference! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-31 Thread Gregory Salvan
Gregory Salvan added the comment: I didn't dare to share this but in case... just few days after my message I fall on the inspiring work of Dr. Hans Vandierendonck (presented during the 2nd International Summer School on Advances in Programming Languages in Edinburgh). Certainly too much, but

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-30 Thread Nick Coghlan
Nick Coghlan added the comment: As far as the specific 5 phase vs 2 steps goes, the two steps in PEP 432 terms are the "Pre-Initialized -> Initializing" transition and the "Initializing -> Initialized" transition. What Gregory is talking about is a potentially good way to organise the second

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-30 Thread Nick Coghlan
Nick Coghlan added the comment: It's still deferred for the time being. Based on what I learned on my previous attempt at implementing it, there's some prep work I need to do where I believe reviewing someone else's attempt at doing it would actually be *more* work than doing the work myself (

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are you planning to un-defer the PEP, and remove the Deferral section? The PEP proposes 5 'phases'. How does that mesh with 2 'steps'? Gregory's message is helpful to me. The Idle startup needs to be documented (AFAIK only code now ) and modified. Internal err

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-28 Thread Drekin
Changes by Drekin : -- nosy: +Drekin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-27 Thread Nick Coghlan
Nick Coghlan added the comment: I wouldn't mind heading in that direction at a later stage. PEP 432 is aimed at a simpler proposition of breaking things up into two steps: Step 1: get a functional bytecode compiler and eval loop up and running (only builtin and frozen modules available) (this

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-25 Thread Gregory Salvan
Gregory Salvan added the comment: In case it helps, I've experienced a similar refactoring. we used a pattern of stages and services: - stages represent a state of the application (like Pre-Initialization, Initializing, Initialized...), they are composed of services - services represent a key r

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-24 Thread sbspider
Changes by sbspider : -- nosy: +sbspider ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-23 Thread Nick Coghlan
Nick Coghlan added the comment: Just noting that issue 18093 was also part of that groundwork. My previous attempt at a draft PEP 432 patch: https://bitbucket.org/ncoghlan/cpython_sandbox/src/pep432_modular_bootstrap/?at=pep432_modular_bootstrap That initial attempt ended up being abandoned as

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-23 Thread Nick Coghlan
Nick Coghlan added the comment: I'll also be using this issue to track some of the ground work I plan to lay this time. I found in my last attempt that the interpreter internals needed some initial refactoring to take better advantage of C level state encapsulation in different modules. -

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-23 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-23 Thread Nick Coghlan
New submission from Nick Coghlan: PEP 432 describes a plan to redesign how the interpreter startup sequence is implemented. This is a placeholder issue to be used to help track other problems which can't easily be fixed without those changes. -- components: Interpreter Core messages: