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

(cherry picked from commit 0319cd6825)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
Miss Islington (bot) 2022-08-25 19:13:04 -07:00 committed by GitHub
parent 5f4588feec
commit b69ba3d723
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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