def testcatch2(self): eq_(eval(catch(1, throw(1, 2), 3)), 2)
def make_catch(tag, body): if len(tag) != 1: raise DinpySyntaxError() return special.catch(preparse(tag[0]), *preparse(body))
def testcatch1(self): eq_(eval(catch(1, 2)), 2)
def make_catch(tag, body): if len(tag)!=1: raise DinpySyntaxError() return special.catch(preparse(tag[0]), *preparse(body))