dataclass init=False field with default works but default_factory does not

Đang mở
#89,529 5 bình luận 1 reaction 1 người được giao Xem trên GitHub

@ericvsmith đang làm issue này rồi.

Từ ngày 16/8/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

stdlib topic-dataclasses type-feature
BPO 45366
Nosy @ericvsmith, @sobolevn, @akulakov

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 2021-10-04.20:17:33.399>
labels = ['ctypes', 'type-bug', '3.9']
title = 'dataclass init=False field with default works but default_factory does not'
updated_at = <Date 2021-11-08.01:28:02.575>
user = 'https://bugs.python.org/simplecoder878'

bugs.python.org fields:

activity = <Date 2021-11-08.01:28:02.575>
actor = 'andrei.avk'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['ctypes']
creation = <Date 2021-10-04.20:17:33.399>
creator = 'simple_coder878'
dependencies = []
files = []
hgrepos = []
issue_num = 45366
keywords = []
message_count = 4.0
messages = ['403182', '403183', '403206', '405920']
nosy_count = 4.0
nosy_names = ['eric.smith', 'sobolevn', 'andrei.avk', 'simple_coder878']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue45366'
versions = ['Python 3.9']

Linked PRs
  • gh-123070
Ngôn ngữ chính
Python
Star
77.2k
Fork
36k
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
558

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python/cpython

Tất cả issue của python/cpython

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.