- more PEP8 corrections

This commit is contained in:
Marius Stanciu
2019-07-16 20:51:09 +03:00
parent e6153298bc
commit 6743927eb2
10 changed files with 98 additions and 115 deletions

View File

@@ -2,16 +2,19 @@ from PyQt5 import QtCore
from multiprocessing import Pool
import dill
def run_dill_encoded(what):
fun, args = dill.loads(what)
print("load", fun, args)
return fun(*args)
def apply_async(pool, fun, args):
print("...", fun, args)
print("dumps", dill.dumps((fun, args)))
return pool.map_async(run_dill_encoded, (dill.dumps((fun, args)),))
def func1():
print("func")