[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-10-15 Thread Georg Brandl
Georg Brandl 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

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-23 Thread James Hutchison
James Hutchison 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 data structure, it seems

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-22 Thread Georg Brandl
Georg Brandl added the comment: Changing to doc issue. -- components: +Documentation -Library (Lib) nosy: +georg.brandl ___ Python tracker ___ ___

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-22 Thread Alex
Alex 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 __

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-22 Thread Ask Solem
Ask Solem 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 the emp

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Similarly: >>> x = man.list() >>> x.append({}) >>> x[0] {} >>> x[0]['a'] = 5 >>> x[0] {} Lots of fun! -- nosy: +pitrou ___ Python tracker ___

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> jnoller nosy: +jnoller versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ __

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-08 Thread James Hutchison
New submission from James Hutchison : 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 can't insert actual