def meta_node_w(mn_p, err_p): mn = EOFNode.create_from_ptr(mn_p) err = Error(err_p) try: try: self.visit_meta_node(mn) except AttributeError: pass return 0 except GTError, errmsg: err.set(str(errmsg)) return -1
def eof_node_w(en_p, err_p): en = EOFNode.create_from_ptr(en_p) err = Error(err_p) try: try: self.visit_eof_node(en) except AttributeError: pass return 0 except GTError, errmsg: err.set(str(errmsg)) return -1
def eof_node_w(en_p, err_p): en = EOFNode.create_from_ptr(en_p) err = Error(err_p) try: try: self.visit_eof_node(en) except AttributeError: pass return 0 except GTError: import sys errmsg = sys.exc_info()[1] err.set(str(errmsg)) return -1