Message415353
Sorry for this post but I found an unusual behaviour.
from multiprocessing import Manager
manager = Manager()
managerdict = manager.dict()
managerdict["first"]= {"stat" : [0,1]}
managerdict["first"]["stat"][0] += 1
managerdict["first"]["stat"][1] += 1
print(managerdict)
anotherdict = {}
anotherdict['foo'] = {"stat" : [0, 1]}
anotherdict['foo']["stat"][0] += 1
anotherdict['foo']["stat"][1] += 1
print(anotherdict)
Which outputs:
{'first': {'stat': [0, 1]}}
{'foo': {'stat': [1, 2]}}
What am I doing wrong?
Thanks! |
|
Date |
User |
Action |
Args |
2022-03-16 17:16:49 | munky99999 | set | recipients:
+ munky99999 |
2022-03-16 17:16:49 | munky99999 | set | messageid: <1647451009.46.0.388425415857.issue47036@roundup.psfhosted.org> |
2022-03-16 17:16:49 | munky99999 | link | issue47036 messages |
2022-03-16 17:16:49 | munky99999 | create | |
|