Syntax warnings are duplicated in zipimport
Open
Nobody has claimed this yet.
3.13
3.14
3.15
stdlib
topic-importlib
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
When importing a not precompiled module from a ZIP archive, syntax warnings are emitted twice.
Discovered during adding tests for #139652.
Linked PRs
- gh-153799
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
Begin with the zipimport path for importing non-precompiled modules and review the tests being added for #139652. Reproduce the duplicate syntax-warning behavior, then compare gh-153799 to confirm the intended fix and regression coverage; done means one warning per occurrence and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100