Message339273
I'm a bit late to reply, but I think you are using the API wrong. Please try the following snippet:
from multiprocessing import Manager
manager = Manager()
data = manager.list([manager.list([manager.list(['', '', '', '', '', '', '', '', '', '', '', ''])])])
print(data[0][0])
print(data[0][0][0])
print(data[0][0][1])
data[0][0][0] = 5
data[0][0][1] = '5'
print(data[0][0])
print(data[0][0][0])
print(data[0][0][1])
Output:
$ ./python.exe example.py
['', '', '', '', '', '', '', '', '', '', '', '']
[5, '5', '', '', '', '', '', '', '', '', '', '']
5
5
You can also take a look at the tests in the original commit that implemented this feature:
https://github.com/python/cpython/commit/86a76684269f940a20366cb42668f1acb0982dca |
|
Date |
User |
Action |
Args |
2019-03-31 17:37:10 | berker.peksag | set | recipients:
+ berker.peksag, pitrou, davin, John_81 |
2019-03-31 17:37:10 | berker.peksag | set | messageid: <1554053830.95.0.648291724341.issue32538@roundup.psfhosted.org> |
2019-03-31 17:37:10 | berker.peksag | link | issue32538 messages |
2019-03-31 17:37:10 | berker.peksag | create | |
|