Message91718
The docs very clearly say the second argument is the value that will be
assigned to the keys. It doesn't matter whether or not that object is
mutable, it is that object that gets assigned. This is just the way
that Python works:
>>> a = b = []
>>> a.append(1)
>>> b.append(2)
>>> a
[1, 2]
That is exactly analogous to what you are doing in your example. |
|
Date |
User |
Action |
Args |
2009-08-18 21:13:41 | r.david.murray | set | recipients:
+ r.david.murray, rhettinger, benjamin.peterson, maxlem |
2009-08-18 21:13:40 | r.david.murray | set | messageid: <1250630020.96.0.328222983381.issue6730@psf.upfronthosting.co.za> |
2009-08-18 21:13:39 | r.david.murray | link | issue6730 messages |
2009-08-18 21:13:39 | r.david.murray | create | |
|