Commit d034ece5 authored by R David Murray's avatar R David Murray

Merge: #20135: FAQ entry for list mutation. (See also 90b07d422bd9.)

I accidentally merged this in 90b07d422bd9; this merge addresses the
last review comments on the patch.
parents 6c7a4182 12dc0d96
......@@ -473,7 +473,7 @@ There are two factors that produce this result:
After the call to :meth:`~list.append`, the content of the mutable object has
changed from ``[]`` to ``[10]``. Since both the variables refer to the same
object, accessing either one of them accesses the modified value ``[10]``.
object, using either name accesses the modified value ``[10]``.
If we instead assign an immutable object to ``x``::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment