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

This commit is contained in:
Dong-hee Na 2022-08-26 11:02:57 +09:00 committed by GitHub
parent 47d406ffc4
commit 0319cd6825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)