Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

manager.dict() append

import multiprocessing

_d = {"a": []}
d = mp.Manager().dict(_d)

# USE:
d["a"] += ["Whatever you want"]

# DON'T use:
d["a"].append("Whatever you want")

 
PREVIOUS NEXT
Tagged: #append
ADD COMMENT
Topic
Name
7+9 =