We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51f43b7 commit e069316Copy full SHA for e069316
peps/pep-0795.rst
@@ -268,6 +268,11 @@ across sub-interpreters without the changes proposed by this PEP. The
268
``n`` tuple contains a mutable dictionary and is, therefore, **not**
269
deeply immutable and therefore not safe to share between sub-interpreters.
270
271
+(Note that types created by ``namedtuple`` are mutable. This means that
272
+``Person`` above is mutable. Below we introduce a solution for this by
273
+way of a ``freeze()`` function. Another possibility is to provide a
274
+companion constructor for named tuples that create immutable types.)
275
+
276
277
Sharing of Types
278
~~~~~~~~~~~~~~~~
0 commit comments