Added to repr entry in Doc/library/functions.rst.
---------
(cherry picked from commit
5770006ffac2abd4f1c9fd33bf5015c9ef023576)
Co-authored-by: Oh seungmin <tmdals179@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
If :func:`sys.displayhook` is not accessible, this function will raise
:exc:`RuntimeError`.
+ This class has a custom representation that can be evaluated::
+
+ class Person:
+ def __init__(self, name, age):
+ self.name = name
+ self.age = age
+
+ def __repr__(self):
+ return f"Person('{self.name}', {self.age})"
+
.. function:: reversed(seq)