tests/test_cache.py and Python >= 3.12: SyntaxWarning: invalid escape sequence '\w'
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- testing-qa
Research direction
Open tests/test_cache.py around line 150 and reproduce the warning with Python 3.12 or newer. Inspect the string containing the invalid \w escape, then run the relevant cache tests and confirm the SyntaxWarning no longer appears.
Written by the indexing model from the issue text.
Description
tests/test_cache.py yields the following syntax warning starting with Python 3.12 (tested using Lark 1.2.1):
/path/to/lark/tests/test_cache.py:150: SyntaxWarning: invalid escape sequence '\w'
See https://github.com/lark-parser/lark/actions/runs/10367391039/job/28698690278 for an example.
- Dominant language
- Python
- Stars
- 6k
- Forks
- 523
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 2
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.
More from lark-parser/lark
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
lark-parser/lark#1608 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
lark-parser/lark#1599 · 5 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
lark-parser/lark#1526 · 3 comments ·
-
docs good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
lark-parser/lark#1494 · 2 comments ·
-
Zero-width regex terminal rejected even when the surrounding rule can never match zero characters Open
Difficulty 4/5 3-5 days Newbie friendliness 68/100
lark-parser/lark#1640 · 1 comment ·
All issues in lark-parser/lark
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100