Skip to content
Snippets Groups Projects
Unverified Commit b69ba3d7 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

gh-96197: Define the behavior of repr if sys.displayhook is lost (gh-96242)


(cherry picked from commit 0319cd68)

Co-authored-by: default avatarDong-hee Na <donghee.na@python.org>
parent 5f4588fe
Branches
Tags
No related merge requests found
...@@ -1509,6 +1509,8 @@ are always available. They are listed here in alphabetical order. ...@@ -1509,6 +1509,8 @@ are always available. They are listed here in alphabetical order.
of the type of the object together with additional information often 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 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. 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) .. function:: reversed(seq)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment