From e2ab4f70c0aaf64d03e44990c2a64c351c6b5ed9 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 21 Oct 2024 09:07:43 -0700 Subject: [PATCH] Clarify 'shallow immutable'. --- peps/pep-0750.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/peps/pep-0750.rst b/peps/pep-0750.rst index a2a039083c2..78cf8a09aea 100644 --- a/peps/pep-0750.rst +++ b/peps/pep-0750.rst @@ -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: