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

Skip to content
/ cpython Public

Commit 315807d

Browse files
gh-96197: Define the behavior of repr if sys.displayhook is lost (gh-96242)
(cherry picked from commit 0319cd6) Co-authored-by: Dong-hee Na <donghee.na@python.org>
1 parent 7604456 commit 315807d

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 4C51 ` is not accessible, this function will raise
1519+
:exc:`RuntimeError`.
15181520

15191521

15201522
.. function:: reversed(seq)

0 commit comments

Comments
 (0)
0