Georg Brandl ge...@python.org added the comment:
For now, documented the current behavior in r85534. If a different solution is
desired, a new issue can be opened.
--
resolution: - wont fix
status: open - closed
___
Python tracker
Georg Brandl ge...@python.org added the comment:
Changing to doc issue.
--
components: +Documentation -Library (Lib)
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9801
James Hutchison jamesghutchi...@gmail.com added the comment:
Is there a way to get this so it behaves more intuitively? You'd think adding a
managed list to a managed dictionary (or another managed list) or making a deep
copy would work but it still doesn't. When you get an item from a managed
Ask Solem a...@opera.com added the comment:
Maybe surprising but not so weird if you think about what happens
behind the scenes.
When you do
x = man.list()
x.append({})
You send an empty dict to the manager to be appended to x
when do:
x[0]
{}
you receive a local copy of
Alex alex.gay...@gmail.com added the comment:
It should be documented though. Similar scenario in the Django docs:
http://docs.djangoproject.com/en/1.2/topics/http/sessions/#when-sessions-are-saved
--
nosy: +alex
___
Python tracker
New submission from James Hutchison jamesghutchi...@gmail.com:
tested python 3.1.2
Man = multiprocessing.Manager();
d = man.dict();
d['l'] = list();
d['l'].append(hey);
print(d['l']);
[]
using debugger reveals a KeyError. Extend also does not work. Only thing that
works is += which means you
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - jnoller
nosy: +jnoller
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9801
___
Antoine Pitrou pit...@free.fr added the comment:
Similarly:
x = man.list()
x.append({})
x[0]
{}
x[0]['a'] = 5
x[0]
{}
Lots of fun!
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9801