def gilsleep(t):
 code = '\n'.join(['from posix cimport unistd', 'unistd.sleep(t)'])
 while True:
  inline(code, quiet=True, t=t)
  print time.time()
  sys.stdout.flush()

def gilsleep ( t ) : code = '\n' . join ( [ 'from posix cimport unistd' , 'unistd.sleep(t)' ] ) while True : inline ( code , quiet = True , t = t ) print time . time ( ) sys . stdout . flush ( )
gil-holding sleep with cython .