RustPython / RustPython/Parser
Using strings inside f-string
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 117
- Forks
- 38
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 1
Description
From: https://github.com/mtshiba/pylyzer/issues/115
Starting with Python 3.12, the use of strings within f-strings is permitted.
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No parser files or tests are named. Start by reproducing the shown f-string example and tracing the parser's handling of replacement fields and nested strings. Done means the same-quoting example parses successfully under Python 3.12 syntax rules without regressing existing f-string parsing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100