Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (8 sloc) 184 Bytes
""" Prinme a coroutine. """
def coroutine(func):
def start(*args,**kwargs):
cr = func(*args,**kwargs)
next(cr)
#cr.next()
return cr
return start