This code is found in multiprocessing.dummy , a "fake" version of multiprocessing that implements functionality with threads. If you look down a few lines, you will see
def Manager(): return sys.modules[__name__]
multiprocessing.dummy implements Manager as a function that simply returns the multiprocessing.dummy module itself, so the multiprocessing.dummy module object must provide the API of the multiprocessor Manager object. Lines
dict = dict list = list
so you can do
m = multiprocessing.dummy.Manager() d = m.dict()
as if you had real multiprocessing.Manager() .
user2357112 May 08 '17 at 17:16 2017-05-08 17:16
source share