fork download
  1. def foo(*args):
  2. print("entering foo()")
  3. print("passed data: " + str(args))
  4.  
  5. def bar(callback):
  6. print("inside bar")
  7. callback()
  8.  
  9. print("exiting foo()")
  10. return bar
  11.  
  12. @foo("hello", "world", 42)
  13. def baz():
  14. print("inside baz")
  15.  
Runtime error #stdin #stdout 0.02s 5760KB
stdin
Standard input is empty
stdout
Standard output is empty