Miscellany
public text v1 · immutableimport gc
import kaa
@kaa.yield_execution()
def foo():
yield kaa.YieldContinue
print 'now I crash and nobody sees it'
crash
@kaa.yield_execution()
def bar():
# call bar that will raise an exception but ignore
# the InProgress here (unhandled)
foo()
yield 1
def garbage_collect():
gc.collect()
for g in gc.garbage:
# print information about garbage gc can't collect
print 'Unable to free %s' % (g,)
bar()
kaa.Timer(garbage_collect).start(0.5)
kaa.main.run()