Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-133555: Allow to regenerate the parser with Python < 3.14#133557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

alexprengere
Copy link
Contributor

@alexprengerealexprengere commentedMay 7, 2025
edited by bedevere-appbot
Loading

Copy link
Member

@lysnikolaoulysnikolaou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Good catch! LGTM! Thanks@alexprengere!

alexprengere reacted with heart emoji
@AA-Turner
Copy link
Member

Should we add a test for this?

@lysnikolaou
Copy link
Member

Hmm, not sure what the test would look like. If it's verifying the list of token, we would have to update every time a new token is added, which is as easy to miss as just changing theifs like in this PR.

And I don't think we have the ability to run scripts with different python versions to verify they work, right?

@encukou
Copy link
Member

Maybe add a reminder comment to e.g.Grammar/Tokens?

lysnikolaou reacted with thumbs up emoji

@AA-Turner
Copy link
Member

And I don't think we have the ability to run scripts with different python versions to verify they work, right?

We could add something to theCheck if generated files are up to date CI check perhaps? Though just having a comment may be simpler.

A

@python-cla-bot
Copy link

python-cla-botbot commentedMay 7, 2025
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

@alexprengere
Copy link
ContributorAuthor

After committing@AA-Turner suggestion directly from the GitHub UI, the CLA bot now require signing for the noreply mail used. Should I edit the commit manually to update the mail address, or is there a another way to do this?

@AA-Turner
Copy link
Member

If you click the 'CLA not signed' button, you should be able to sign it. If you have problems, can you paste a screenshot of what you see?

A

@alexprengere
Copy link
ContributorAuthor

All good now, thanks! I was not sure if we were supposed to sign those noreply mail addresses as well (my primary gmail addresses was already signed).

@lysnikolaou
Copy link
Member

@alexprengere Could you add a comment toGrammar/Tokens that the peg generator (ideally mentioning specific files and lines) needs to be udpated as well when adding new tokens?

alexprengere reacted with thumbs up emoji

@alexprengere
Copy link
ContributorAuthor

Done.
Is there a fundamental reason whypython -m pegen python does not takeGrammar/Tokens as input, the same way thatpython -m pegen c does? This would also solve the issue of updatingparser_generator.py when new tokens are added.

@alexprengerealexprengereforce-pushed thefix_pegen_tstrings_tokens branch from3609894 toe1ebec4CompareMay 7, 2025 17:17
alexprengereand others added5 commitsMay 7, 2025 22:54
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@alexprengerealexprengereforce-pushed thefix_pegen_tstrings_tokens branch frome1ebec4 to68066fdCompareMay 7, 2025 20:54
@AA-TurnerAA-Turner added the needs backport to 3.14bugs and security fixes labelMay 8, 2025
@AA-TurnerAA-Turner merged commitb48599b intopython:mainMay 8, 2025
48 checks passed
@miss-islington-app
Copy link

Thanks@alexprengere for the PR, and@AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 8, 2025
…thonGH-133557)(cherry picked from commitb48599b)Co-authored-by: Alex Prengère <2138730+alexprengere@users.noreply.github.com>Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@bedevere-app
Copy link

GH-133630 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMay 8, 2025
AA-Turner added a commit that referenced this pull requestMay 8, 2025
…H-133557) (#133630)gh-133555: Allow regenerating the parser with Python < 3.14 (GH-133557)(cherry picked from commitb48599b)Co-authored-by: Alex Prengère <2138730+alexprengere@users.noreply.github.com>Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@AA-TurnerAA-TurnerAA-Turner approved these changes

@lysnikolaoulysnikolaoulysnikolaou approved these changes

@pablogsalpablogsalAwaiting requested review from pablogsalpablogsal is a code owner

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@alexprengere@AA-Turner@lysnikolaou@encukou

[8]ページ先頭

©2009-2025 Movatter.jp