[Python-checkins] cpython (merge 3.4 -> default): Merge: #20135: FAQ entry for list mutation. (See also 90b07d422bd9.)
r.david.murray
python-checkins at python.org
Mon Sep 29 16:24:22 CEST 2014
https://hg.python.org/cpython/rev/3d924bbfdcbc
changeset: 92624:3d924bbfdcbc
parent: 92622:5313b4c0bb6c
parent: 92623:138f54622841
user: R David Murray <rdmurray at bitdance.com>
date: Mon Sep 29 10:19:20 2014 -0400
summary:
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.
files:
Doc/faq/programming.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -473,7 +473,7 @@
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``::
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list