1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import dataflow import time def show(v): print 'show() init + print' print 'show() v: ' + str(v) print 'show() done' @dataflow.dataflow def set(): print 'set() init + sleep' time.sleep(1) print 'set() returns 3' return 3 v = set() show(v) show(v)