Skip to content
Snippets Groups Projects
Unverified Commit 0319cd68 authored by Dong-hee Na's avatar Dong-hee Na Committed by GitHub
Browse files

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

parent 47d406ff
Branches
Tags
No related merge requests found
...@@ -1515,6 +1515,8 @@ are always available. They are listed here in alphabetical order. ...@@ -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 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