SubTracker: Convert static types (PyTypeObject) to heap types via `PyType_FromModuleAndSpec`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start by reading the dependency on multi-phase init in issue #29021 and the CPython guides on isolating extension modules and changing static types to heap types. The issue is a tracker for multiple pull requests; done means NumPy's static PyTypeObject definitions have been converted to heap types and the limited-API prerequisite is addressed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of https://github.com/numpy/numpy/issues/32451 and https://github.com/numpy/numpy/issues/31913. This is intended to be a tracking issue for a series of PRs converting NumPy's static types to heap types.
NumPy currently defines its types (ndarray, dtype, ufunc, scalars, iterators, etc.) as static PyTypeObjects. Static types are shared by every interpreter in the process, including their tp_dict and reference counts, so they can't be isolated per interpreter. The CPython Isolating Extension Modules guide recommends replacing them with heap types created by PyType_FromModuleAndSpec.
This issue depends on multi-phase init (#29021) and generally follows the Changing Static Types to Heap Types section of the guide:
Converting to heap types is also a prerequisite for building against the Limited API, where static PyTypeObject definitions are not possible, see https://github.com/numpy/numpy/issues/31913.
- Ngôn ngữ chính
- Python
- Star
- 33.5k
- Fork
- 13.1k
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 143
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của numpy/numpy
-
00 - Bug component: numpy.linalg
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
00 - Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
00 - Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
numpy/numpy#33422 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BUG: f2py treats a backslash as an escape inside character literalsCó thể đã có người làm @HaoZeke đã nhận 17 ngày trước. Đang mở00 - Bug component: numpy.f2py
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
numpy/numpy#33220 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DOC: use CITATION.cff file format for citation informationCó thể đã có người làm @JaroCamphuijsen đã nhận 58 ngày trước. Đang mở04 - Documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
numpy/numpy#32817 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
521xueweihan/HelloGitHub#4543 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
emeryberger/CSrankings#15700 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Bug | 工作不正常 Triage | 待检查
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Task select patterns with uppercase letters never matchCó thể đã có người làm @manobhisriram đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày