Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Python multiprocessing pool.map for multiple arguments

Asked by Ben Butler Apr 11, 2021 2.2K views 1 answer
Share

About this question

In the Python multiprocessing library, is there a variant of pool.map which support multiple arguments?

text = "test"
def harvester(text, case):
X = case[0]
text+ str(X)
if __name__ == '__main__':
pool = multiprocessing.Pool(processes=6)
case = RAW_DATASET pool.map(harvester(text,case),case, 1) pool.close()
pool.join()

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.