You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
3.10's make regen-pegen-metaparser fails with 3.12+ #125529
That's because of PEP 701 and the fact that f-strings are no longer STRING tokens (grammar actions need to be valid Python tokens and the accepted tokens need to be listed in the actions mini-grammar).
This patch solves the issue, though I don't know how we would fix this now that 3.10 is security-only:
Activity
lysnikolaou commentedon Oct 15, 2024
That's because of PEP 701 and the fact that f-strings are no longer
STRINGtokens (grammar actions need to be valid Python tokens and the accepted tokens need to be listed in the actions mini-grammar).This patch solves the issue, though I don't know how we would fix this now that 3.10 is security-only:
encukou commentedon Oct 16, 2024
Thank you!
Ultimately that's the release manager's call, but I think this is the right solution. I'll prepare a PR and write some reasoning there.
[3.10] pythongh-125529: Avoid f-strings in the metagrammar
[3.10] gh-125529: Avoid f-strings in the metagrammar (#125582)