Skip to content

Commit 22a2e96

Browse files
committed
Mention __repr__
1 parent b3430e7 commit 22a2e96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

peps/pep-0750.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,14 @@ literals.
468468
No ``Template.__str__()`` Implementation
469469
----------------------------------------
470470

471-
The ``Template`` type does not provide a specialized ``__str__()`` implementation;
472-
it inherits the default implementation from the ``object`` class.
471+
The ``Template`` type does not provide a specialized ``__str__()`` implementation.
473472

474473
This is because ``Template`` instances are intended to be used by template processing
475474
code, which may return a string or any other type. There is no canonical way to
476475
convert a Template to a string.
477476

477+
``Template.__repr__()`` returns a simple representation suitable for debugging.
478+
478479

479480
Examples
480481
========

0 commit comments

Comments
 (0)