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

parser: add support for f-strings #236

Open
shellquery opened this issue Oct 22, 2024 · 1 comment
Open

parser: add support for f-strings #236

shellquery opened this issue Oct 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@shellquery
Copy link

File "/opt/homebrew/Cellar/[email protected]/3.9.20/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/init.py", line 339, offset 80
raise TypeError(f'the JSON object must be str, bytes or bytearray, '

SyntaxError: 'invalid syntax'

@sbinet
Copy link
Member

sbinet commented Oct 22, 2024

yeah, gpython is (quoting the README) a part re-implementation, part port of the Python 3.4 interpreter in Go.
IIRC, f-strings were not yet in (if memory serves, they were brought in CPython 3.6).

we'd be happy to review a PR adding this feature :}

@sbinet sbinet changed the title can not import json parser: add support for f-strings Oct 22, 2024
@sbinet sbinet added the enhancement New feature or request label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants