classification
Title: Let's retire pgen
Type: Stage: patch review
Components: Build Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: BTaskaya, Ethan Smith, eamanu, gvanrossum, levkivskyi, pablogsal, serhiy.storchaka
Priority: low Keywords: patch, patch, patch

Created on 2019-01-23 05:32 by gvanrossum, last changed 2019-02-15 08:39 by serhiy.storchaka.

Pull Requests
URL Status Linked Edit
PR 11814 open pablogsal, 2019-02-11 00:49
Messages (4)
msg334247 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2019-01-23 05:32
Pgen is literally the oldest piece of technology in the CPython repo -- it was the first thing I wrote for Python over 29 years ago. It's not aged well, and building it requires various #if[n]def PGEN hacks in other parts of the code; it also depends more and more on CPython internals. There already is a replacement written in pure Python (Lib/lib2to3/pgen/), it just needs some glue to actually generate the graminit.[ch] files. Note that several other essential generation steps (everything listed for regen-all except regen-importlib and clinic) already depend on having a working Python interpreter around, so let's not worry about the bootstrapping process.
msg334482 - (view) Author: Emmanuel Arias (eamanu) * Date: 2019-01-28 17:53
Hello!

I can help if you consider it appropriate :-)
msg334488 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2019-01-28 19:57
@eamanu, feel free to submit a PR. I won't be available to guide you through the steps; there are other forums e.g. Zulip.
msg335591 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2019-02-15 08:39
I didn't look at the PR yet, but this is a wonderful idea. I planned to do this just after rewriting generators of token-related data and code in Python (issue30455), but Pablo has overfoot me. Great!
History
Date User Action Args
2019-02-15 08:39:27serhiy.storchakasetkeywords: patch, patch, patch
nosy: + serhiy.storchaka
messages: + msg335591

2019-02-11 00:50:42pablogsalsetpull_requests: - pull_request11829
2019-02-11 00:50:28pablogsalsetpull_requests: - pull_request11830
2019-02-11 00:49:16pablogsalsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request11830
2019-02-11 00:49:08pablogsalsetkeywords: + patch
stage: needs patch -> needs patch
pull_requests: + pull_request11829
2019-02-11 00:49:00pablogsalsetkeywords: + patch
stage: needs patch -> needs patch
pull_requests: + pull_request11828
2019-02-09 16:58:23pablogsalsetnosy: + pablogsal
2019-01-28 19:57:59gvanrossumsetmessages: + msg334488
2019-01-28 17:53:30eamanusetnosy: + eamanu
messages: + msg334482
2019-01-28 11:51:59BTaskayasetnosy: + BTaskaya
2019-01-25 18:40:28levkivskyisetnosy: + levkivskyi
2019-01-23 05:54:47Ethan Smithsetnosy: + Ethan Smith
2019-01-23 05:32:17gvanrossumcreate