Python Multiprocessing, Need to Give Extra Arguement
In Python, what do you do if you are using a multiprocessing and you need
to give the function an extra agruement?
Example:
if value == "Y":
pool = multiprocessing.Pool(processes=8)
pool.map(verify_headers, url_list)<-need to give parameter for a
password
pool.close()
pool.join()
print "Done..."
and the function would be something like:
def verify_headers(url, password):
pass
No comments:
Post a Comment