8000 gh-96197: Define the behavior of repr if sys.displayhook is lost (gh-… · python/cpython@0319cd6 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 0319cd6

Browse files
authored
gh-96197: Define the behavior of repr if sys.displayhook is lost (gh-96242)
1 parent 47d406f commit 0319cd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,8 @@ are always available. They are listed here in alphabetical order.
15151515
of the type of the object together with additional information often
15161516
including the name and address of the object. A class can control what this
15171517
function returns for its instances by defining a :meth:`__repr__` method.
1518+
If :func:`sys.displayhook` is not accessible, this function will raise
1519+
:exc:`RuntimeError`.
15181520

15191521

15201522
.. function:: reversed(seq)

0 commit comments

Comments
 (0)
0