micropython / micropython/micropython-lib
Back references in re.py
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 1.1k
- Avg merge
- 7d 6h
- Merged PRs (30d)
- 3
Description
Hello. I wrote something to make back references(\0-\9) work with re.sub. Not the prettiest but it does seem to work. Unfortunately, I did not understand how to commit this properly. So I'm leaving it here for now. Sorry for the inconvenience.
Contributor guide
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
Start by reviewing re.py and the existing re.sub implementation to understand how replacement strings are parsed. Check the issue's proposed back-reference behavior for \0-\9, then identify the relevant existing test coverage. Done means re.sub supports the requested back references without breaking current replacement behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100