mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-25 18:25:37 +07:00
GitOrigin-RevId: 9e8beb9b56fae71040e312ab92f6d09e56f6395b
12 lines
204 B
Python
12 lines
204 B
Python
from __future__ import with_statement
|
|
import multiprocessing
|
|
|
|
|
|
def f(x):
|
|
return x*x # breakpoint
|
|
|
|
|
|
if __name__ == '__main__':
|
|
with multiprocessing.Pool() as p:
|
|
print(p.map(f, [1, 2, 3]))
|