Skip to content

Commit

Permalink
pythongh-96197: Define the behavior of repr if sys.displayhook is lost (
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Aug 26, 2022
1 parent 47d406f commit 0319cd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.
If :func:`sys.displayhook` is not accessible, this function will raise
:exc:`RuntimeError`.


.. function:: reversed(seq)
Expand Down

0 comments on commit 0319cd6

Please sign in to comment.