Tracking Issue: Support for CPython subinterpreters in NumPy
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reading the CPython Isolating Extension Modules guide and the linked issues #29021 and #31930 to understand the planned work. Done means core modules can be imported multiple times across subinterpreters without memory leaks or race conditions, but this tracking issue does not identify a specific file or test.
Written by the indexing model from the issue text.
Description
Description:
This issue tracks the architectural changes required to support CPython subinterpreters, to safely support multiple interpreters running simultaneously, NumPy must stop relying on global shared memory and ensure every interpreter gets its own distinct module instance.
Initial Roadmap:
Following CPython's Isolating Extension Modules guide, we will start with:
- #29021 (This is an already on going effort by @AA-Turner)
- #31930
- #32747
Expected Outcomes for this phase:
- Core modules can be safely imported multiple times across different subinterpreters without memory leaks or race conditions.
Other references: https://github.com/numpy/numpy/issues/24755
- Dominant language
- Python
- Stars
- 33.5k
- Forks
- 13.1k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 143
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from numpy/numpy
-
00 - Bug component: numpy.linalg
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
00 - Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
00 - Bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
numpy/numpy#33422 · 6 comments ·
Maintainers usually reply within 1 day
-
BUG: f2py treats a backslash as an escape inside character literalsPossibly taken @HaoZeke claimed this 17 days ago. Open00 - Bug component: numpy.f2py
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
numpy/numpy#33220 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
DOC: use CITATION.cff file format for citation informationPossibly taken @JaroCamphuijsen claimed this 58 days ago. Open04 - Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
numpy/numpy#32817 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
521xueweihan/HelloGitHub#4543 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
emeryberger/CSrankings#15700 ·
Maintainers usually reply within 2 days
-
Bug | 工作不正常 Triage | 待检查
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Maintainers usually reply within 1 day
-
Task select patterns with uppercase letters never matchPossibly taken @manobhisriram claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day