June 2017
Beginner to intermediate
274 pages
6h 49m
English
When we call the ProcessPoolExecutor map or submit methods (which we'll discuss later in this section), we're asking it to call a function with the given parameters. But we want that function call to happen inside a worker process. This has some implications that might not be obvious:
For functions, that basically means any function is OK, unless it was defined within the body of another function.
For the parameters, it means that most objects will work, but generators and a few other kinds of special ...
Read now
Unlock full access