예제 #1
0
파일: testeval.py 프로젝트: charyorde/dao
 def testcatch2(self):
   eq_(eval(catch(1, throw(1, 2), 3)), 2)
예제 #2
0
파일: dinpy.py 프로젝트: hermetique/dao
def make_catch(tag, body):
    if len(tag) != 1: raise DinpySyntaxError()
    return special.catch(preparse(tag[0]), *preparse(body))
예제 #3
0
파일: testeval.py 프로젝트: charyorde/dao
 def testcatch1(self):
   eq_(eval(catch(1, 2)), 2)
예제 #4
0
파일: dinpy.py 프로젝트: charyorde/dao
def make_catch(tag, body):
  if len(tag)!=1:  raise DinpySyntaxError()
  return special.catch(preparse(tag[0]), *preparse(body))