Builds Without HAVE_DYNAMIC_LOADING Set Still Expose Features and API Related to Dynamic Modules
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Bug report
Bug description:
When CPython is built without HAVE_DYNAMIC_LOADING set, we currently leave out a small handful of code in Python/import.c and Python/importdl.c. However, there is a bunch more that should probably be excluded (via #ifdef HAVE_DYNAMIC_LOADING):
- some functions and constants in Python/importdl.c and Include/internal/pycore_importdl.h
- some functions, constants, and state in Python/import.c and Include/internal/pycore_import.h
- some code in Lib/importlib/_bootstrap_external.py
- maybe some code in Objects/moduleobject.c
- builds for Modules/Setup.stdlib
- checks in Tools/build/check_extension_modules.py
- modules listed by Tools/build/generate_stdlib_module_names.py
(Also see gh-122907.)
Getting this all correct would probably take a fair amount of effort. Perhaps the big question is would it be worth addressing all these cases?
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
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.
Hướng nghiên cứu
Rà soát các đường dẫn tải động được nêu trong Python/import.c, Python/importdl.c, Include/internal/pycore_importdl.h, Include/internal/pycore_import.h, Lib/importlib/_bootstrap_external.py và Objects/moduleobject.c, cùng với các script Tools/build được liệt kê và Modules/Setup.stdlib. So sánh hành vi khi HAVE_DYNAMIC_LOADING không được thiết lập, có xem xét gh-122907, và xác định đầy đủ phạm vi trước khi định nghĩa việc loại trừ nhất quán các API và tính năng của mô-đun động sẽ có nghĩa là gì.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100