subprocess.Popen(func(), shell=False)
функция func должна напечатать ‘run’
но в ответ я получаю:
Traceback (most recent call last): ... TypeError: 'NoneType' object is not iterable run
Traceback (most recent call last): ... TypeError: 'NoneType' object is not iterable run
import threading def printRun(): print "run" threading.Thread(target = printRun, name = "printRun", args = []).start()