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

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 48d57b4

Browse files
committed
gh-96197: Define the behavior of repr if sys.displayhook is lost
1 parent bcc4cb0 commit 48d57b4

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
@@ -1513,6 +1513,8 @@ are always available. They are listed here in alphabetical order.
15131513
of the type of the object together with additional information often
15141514
including the name and address of the object. A class can control what this
15151515
function returns for its instances by defining a :meth:`__repr__` method.
1516+
If :func:`sys.displayhook` is not accessible, this function will raise
1517+
:exc:`RuntimeError`.
15161518

15171519

15181520
.. function:: reversed(seq)

0 commit comments

Comments
 (0)
0