Skip to content

Commit

Permalink
Clarify 'shallow immutable'.
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Oct 21, 2024
1 parent 5401b48 commit e2ab4f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions peps/pep-0750.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ Like ``Template``, it is a new concrete type found in the ``types`` module:
):
...
Like ``Template``, ``Interpolation`` is immutable. Its attributes cannot be
reassigned. (The ``value`` attribute may of course itself be mutable, but
the ``Interpolation`` instance is not.)
Like ``Template``, ``Interpolation`` is shallow immutable. Its attributes
cannot be reassigned.

The ``value`` attribute is the evaluated result of the interpolation:

Expand Down

0 comments on commit e2ab4f7

Please sign in to comment.