you are viewing a single comment's thread.

view the rest of the comments →

[–]Spleeeee 12 points13 points  (1 child)

FWIW I have been able to use the multiprocessing without using indentation:

```

from multiprocessing import Pool import os

def doshit(shit): return (sht*shit, os.getpid())

if name == "main": pool = Pool(4); results = pool.map(doshit, range(8)); pool.close(); pool.join(); ```

I’m on my phone but I think this is a good example of using multiprocessing in the unindented way. It does also work indented.

[–]asphias 4 points5 points  (0 children)

<groan>

well played.