This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: dataclasses: repr of Field objects should use repr of each member
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.smith Nosy List: eric.smith, ned.deily, serhiy.storchaka
Priority: Keywords: patch

Created on 2018-05-14 12:36 by eric.smith, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 6798 merged eric.smith, 2018-05-14 15:40
PR 6806 merged miss-islington, 2018-05-14 15:41
Messages (2)
msg316502 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2018-05-14 12:36
This is especially true for the "type" member, since it might be a string that looks like a type name (depending on how #33453 is resolved). But repr should be used for all Field members.
msg316541 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-05-14 17:36
New changeset ceb45f0df87071319e6f73fb03e663ac39917daf by Miss Islington (bot) in branch '3.7':
bpo-33494: Change dataclasses.Fields repr to use the repr of each of its members (GH-6798)
https://github.com/python/cpython/commit/ceb45f0df87071319e6f73fb03e663ac39917daf
History
Date User Action Args
2022-04-11 14:59:00adminsetgithub: 77676
2018-05-14 17:40:31eric.smithsetpriority: release blocker ->
2018-05-14 17:37:30eric.smithsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-05-14 17:36:26serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg316541
2018-05-14 15:41:52miss-islingtonsetpull_requests: + pull_request6493
2018-05-14 15:40:57eric.smithsetkeywords: + patch
stage: patch review
pull_requests: + pull_request6491
2018-05-14 12:36:16eric.smithcreate