Message98659
I'm not quite sure from what you wrote if you understood. Just to make sure no one reading this ticket later gets confused: it works the same way for all objects, and the behavior that sometimes surprises people shows up with mutable objects. So lists and dicts behave the same way in this scenario:
>>> x = [[]]*3
>>> x
[[], [], []]
>>> x[0].append(1)
>>> x
[[1], [1], [1]] |
|
Date |
User |
Action |
Args |
2010-02-01 11:56:35 | r.david.murray | set | recipients:
+ r.david.murray, benjamin.peterson, Andrew.Hays |
2010-02-01 11:56:34 | r.david.murray | set | messageid: <1265025394.85.0.0894113623091.issue7823@psf.upfronthosting.co.za> |
2010-02-01 11:56:33 | r.david.murray | link | issue7823 messages |
2010-02-01 11:56:32 | r.david.murray | create | |
|