summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pprint.rst3
-rw-r--r--Doc/whatsnew/3.9.rst6
2 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst
index 9abf2865ef..207c3f8bca 100644
--- a/Doc/library/pprint.rst
+++ b/Doc/library/pprint.rst
@@ -25,6 +25,9 @@ width constraint.
Dictionaries are sorted by key before the display is computed.
+.. versionchanged:: 3.9
+ Added support for pretty-printing :class:`types.SimpleNamespace`.
+
The :mod:`pprint` module defines one class:
.. First the implementation class:
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 780c0a94d6..379a097ada 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -111,6 +111,12 @@ threads were never supported in subinterpreters. Previously, the subinterpreter
finalization crashed with a Pyton fatal error if a daemon thread was still
running.
+pprint
+------
+
+:mod:`pprint` can now pretty-print :class:`types.SimpleNamespace`.
+(Contributed by Carl Bordum Hansen in :issue:`37376`.)
+
Optimizations
=============