is there a concurrent list for append in parallel programming in python? how to pass parameter in this parallel program with pool?
meInvent bbird
jobmattcon at gmail.com
Thu Jun 16 03:28:51 EDT 2016
is there like c# have concurrent list ?
i find something these, but how can it pass an initlist list variable
is it doing the same function as itertools.combinations ?
def comb(n, initlist): # the argument n is the number of items to select
res = list(itertools.combinations(initlist, n)) # create a list from the iterator
return res
#p = Pool(8)
#times = range(0, len(initlist)+1)
#values = p.map(comb, times) # pass the range as the sequence of arguments!
#p.close()
#p.join()
More information about the Python-list
mailing list