Support chained comparison like ` if 0 < x < 10`
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 145
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
We could transform tests like this to if (0 < x) and (x < 10):
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
The issue names no implementation file or test. Start by locating the Python AST or expression-transformation entry point in the repository, then trace how comparison expressions are handled. Done means chained comparisons such as 0 < x < 10 are transformed into equivalent pairwise comparisons joined with and, with coverage for the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100