summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorLewis Gaul <lewis.gaul@gmail.com>2021-04-13 23:59:24 (GMT)
committerGitHub <noreply@github.com>2021-04-13 23:59:24 (GMT)
commit11159d2c9d6616497ef4cc62953a5c3cc8454afb (patch)
tree80c6de1f50ce31cbe76e4a6ab2398a95f8fb5c2f /Doc/library
parent695d47b51e3e197de5448a1eb2f618bef6d59ac8 (diff)
downloadcpython-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/library')
-rw-r--r--Doc/library/pprint.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst
index 756c33a..f45c66f 100644
--- a/Doc/library/pprint.rst
+++ b/Doc/library/pprint.rst
@@ -28,6 +28,9 @@ Dictionaries are sorted by key before the display is computed.
.. versionchanged:: 3.9
Added support for pretty-printing :class:`types.SimpleNamespace`.
+.. versionchanged:: 3.10
+ Added support for pretty-printing :class:`dataclasses.dataclass`.
+
The :mod:`pprint` module defines one class:
.. First the implementation class: