[issue36119] Can't add/append in set/list inside shared dict

2019-02-26 Thread Josh Rosenberg
Josh Rosenberg added the comment: As Karthikeyan, this is an inevitable, and documented, consequence of the proxies not being aware of in-place modification of their contents. As your own example demonstrates, any approach that provides that information to the shared dict proxy will work; |=

[issue36119] Can't add/append in set/list inside shared dict

2019-02-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/multiprocessing.html#proxy-objects > If standard (non-proxy) list or dict objects are contained in a referent, > modifications to those mutable values will not be propagated through the > manager because the proxy

[issue36119] Can't add/append in set/list inside shared dict

2019-02-26 Thread Andrei Stefan
New submission from Andrei Stefan : I'm creating a shared dict for multiprocessing purposes: from multiprocessing import Manager manager = Manager() shared_dict = manager.dict() If I add a set or a list as a value in the dict: shared_dict['test'] = set() or shared_dict['test'] = list() I can