Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 580bdc0b0b
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 0.395 kb
# test nesting of stdout buffers
# identical to 1.py, so can simply skip foo
import time
def foo():
time.sleep(0.2)
print "<FOO>",
bar()
print "</FOO>"
def bar():
time.sleep(0.2)
print "<BAR>",
baz()
print "</BAR>",
def baz():
time.sleep(0.2)
print "<BAZ>",
terminal()
print "</BAZ>",
# terminates instantly, NOT memoized
def terminal():
print "terminal",
foo()
Jump to Line
Something went wrong with that request. Please try again.