Skip to content

Commit dafd4e1

Browse files
committed
Simplify
1 parent cb3e463 commit dafd4e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

peps/pep-0750.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,8 @@ between two ``Template`` instances and between a ``Template`` instance and a
380380
Template and Interpolation Equality
381381
-----------------------------------
382382

383-
``Template`` and ``Interpolation`` instances use the standard Python equality
384-
semantics from the ``object`` class. No attempt is made to provide an overridden
385-
implementation of ``__eq__()`` or ``__hash__()``.
383+
``Template`` and ``Interpolation`` instances compare with object identity
384+
(``is``).
386385

387386
``Template`` instances are intended to be used by template processing code,
388387
which may return a string or any other type. Those types can provide their

0 commit comments

Comments
 (0)