summaryrefslogtreecommitdiff
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2022-08-26 11:02:57 +0900
committerGitHub <noreply@github.com>2022-08-26 11:02:57 +0900
commit0319cd6825f3c247a875c91493a38992fb33a5b3 (patch)
treeb2965183fa8910079417686c98bd177a2117db56 /Doc/library/functions.rst
parent47d406ffc4946b023e38322c5235bec25f068481 (diff)
downloadcpython-git-0319cd6825f3c247a875c91493a38992fb33a5b3.tar.gz
gh-96197: Define the behavior of repr if sys.displayhook is lost (gh-96242)
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 93e2f5b26a..e86e1857c7 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1515,6 +1515,8 @@ are always available. They are listed here in alphabetical order.
of the type of the object together with additional information often
including the name and address of the object. A class can control what this
function returns for its instances by defining a :meth:`__repr__` method.
+ If :func:`sys.displayhook` is not accessible, this function will raise
+ :exc:`RuntimeError`.
.. function:: reversed(seq)