inspect.getsource gets source copy on disk even when module has not been reloaded
Đang mở
Chưa có ai nhận issue này.
stdlib
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 36k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
| BPO | 26890 |
|---|---|
| Nosy | @1st1, @emilyemorehouse |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2016-04-30.03:33:07.191>
labels = ['library']
title = 'inspect.getsource gets source copy on disk even when module has not been reloaded'
updated_at = <Date 2017-02-21.16:37:00.426>
user = 'https://bugs.python.org/sebastienbourdeauducq'
bugs.python.org fields:
activity = <Date 2017-02-21.16:37:00.426>
actor = 'emilyemorehouse'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2016-04-30.03:33:07.191>
creator = 'sebastien.bourdeauducq'
dependencies = []
files = []
hgrepos = []
issue_num = 26890
keywords = []
message_count = 2.0
messages = ['264538', '264539']
nosy_count = 3.0
nosy_names = ['yselivanov', 'sebastien.bourdeauducq', 'emilyemorehouse']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue26890'
versions = ['Python 3.5']
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
Issue này đề cập đến inspect.getsource nhưng không cung cấp cách tái hiện, tệp mã nguồn hay bài kiểm thử. Trước tiên, hãy tái hiện hành vi bằng một module đã được thay đổi trên đĩa mà không tải lại nó, sau đó lần theo entry point của thư viện inspect và xác định hành vi lựa chọn mã nguồn được mong đợi trước khi định nghĩa một bài kiểm thử hồi quy.
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
- tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- 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
- 35/100