`catch_warnings` context manager causes all warnings to be printed every time, even after exiting
Đang mở
Chưa có ai nhận issue này.
stdlib
type-bug
- 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 | 29672 |
|---|---|
| Nosy | @pitrou, @gerritholl, @embray, @serhiy-storchaka, @segevfiner |
| PRs |
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 2017-02-27.22:29:56.490>
labels = ['type-bug', 'library']
title = '`catch_warnings` context manager causes all warnings to be printed every time, even after exiting'
updated_at = <Date 2021-04-02.21:55:37.433>
user = 'https://github.com/gerritholl'
bugs.python.org fields:
activity = <Date 2021-04-02.21:55:37.433>
actor = 'taldcroft'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2017-02-27.22:29:56.490>
creator = 'Gerrit.Holl'
dependencies = []
files = []
hgrepos = []
issue_num = 29672
keywords = ['patch']
message_count = 10.0
messages = ['288677', '288678', '288680', '288709', '298588', '298822', '320662', '321380', '321393', '390103']
nosy_count = 6.0
nosy_names = ['pitrou', 'Gerrit.Holl', 'erik.bray', 'serhiy.storchaka', 'Segev Finer', 'taldcroft']
pr_nums = ['8232']
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue29672'
versions = []
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
Bắt đầu bằng cách đọc pull request được liên kết python/cpython#8232 và tái hiện hành vi của catch_warnings được mô tả trong issue. Công việc được xem là hoàn tất khi các cảnh báo không bị in lặp lại sau khi context manager kết thúc, với kiểm thử hồi quy bao phủ hành vi đó.
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
- backend
- 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
- 25/100