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

Using strings inside f-string #125

Open
mtshiba opened this issue Dec 3, 2024 · 2 comments
Open

Using strings inside f-string #125

mtshiba opened this issue Dec 3, 2024 · 2 comments

Comments

@mtshiba
Copy link

mtshiba commented Dec 3, 2024

From: mtshiba/pylyzer#115

Starting with Python 3.12, the use of strings within f-strings is permitted.

Reference

However, the current parser implementation does not seem to allow the use of same quoting type strings within f-strings.

f"{"hello"}"

results in the following parsing error:

invalid syntax. Got unexpected token 'hello' at row 1 col 5
@youknowone
Copy link
Member

Yes, we are not following up this feature yet, sorry. RustPython is considering to move on Ruff's python parser. If it is successful, I doubt RustPython team will put effort to this repository anymore.

@Peter554
Copy link

This issue also affects a project I'm working on. If the decision is to move to the ruff python parser then it would be nice to get some guidance on migration, if anyone has time to support with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants