diff options
author | Lewis Gaul <lewis.gaul@gmail.com> | 2021-04-13 23:59:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 23:59:24 (GMT) |
commit | 11159d2c9d6616497ef4cc62953a5c3cc8454afb (patch) | |
tree | 80c6de1f50ce31cbe76e4a6ab2398a95f8fb5c2f /Doc/whatsnew | |
parent | 695d47b51e3e197de5448a1eb2f618bef6d59ac8 (diff) | |
download | cpython-11159d2c9d6616497ef4cc62953a5c3cc8454afb.zip cpython-11159d2c9d6616497ef4cc62953a5c3cc8454afb.tar.gz cpython-11159d2c9d6616497ef4cc62953a5c3cc8454afb.tar.bz2 |
bpo-43080: pprint for dataclass instances (GH-24389)
* Added pprint support for dataclass instances which don't have a custom __repr__.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.10.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index e0e7d19..b1a33ee 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -820,6 +820,12 @@ identification from `freedesktop.org os-release <https://www.freedesktop.org/software/systemd/man/os-release.html>`_ standard file. (Contributed by Christian Heimes in :issue:`28468`) +pprint +------ + +:mod:`pprint` can now pretty-print :class:`dataclasses.dataclass` instances. +(Contributed by Lewis Gaul in :issue:`43080`.) + py_compile ---------- |