Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add f-string parsing for Python 3.12 (PEP 701) #1027

Merged
merged 1 commit into from
Oct 1, 2023

Commits on Oct 1, 2023

  1. Add f-string parsing for Python 3.12 (PEP 701)

    Since Python 3.12, f-strings are tokenized and parsed like the rest
    of Python's grammar, using the new tokens FSTRING_START, FSTRING_MIDDLE
    and FSTRING_END.
    
    Make the babel message extractor concatenate these three if they're
    adjacent to each other. If they're not, that means there are dynamic
    substitutions, so the f-string is ignored.
    encukou authored and akx committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    8260a4d View commit details
    Browse the repository at this point in the history