[docs] [issue20135] FAQ need list mutation answers

R. David Murray report at bugs.python.org
Fri Jul 11 21:48:44 CEST 2014


R. David Murray added the comment:

I think the example would be clarified by speaking about mutation operations versus non-mutation operations.  After all:

>>> x = [1]
>>> y = x
>>> x = x + [2]
>>> x
[1, 2]
>>> y
[1]

At that point including a list += operation would also be beneficial.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20135>
_______________________________________


More information about the docs mailing list