raise_py_exception='%s(); if (!PyErr_Occurred()) PyErr_SetString(PyExc_RuntimeError , "Error converting c++ exception.")'%func_type.exception_value.entry.cname
code.putln(
...
...
@@ -4003,7 +4010,7 @@ class UnopNode(ExprNode):
self.analyse_c_operation(env)
defcheck_const(self):
self.operand.check_const()
returnself.operand.check_const()
defis_py_operation(self):
returnself.operand.type.is_pyobject
...
...
@@ -4149,7 +4156,7 @@ class AmpersandNode(ExprNode):
self.type=PyrexTypes.c_ptr_type(argtype)
defcheck_const(self):
self.operand.check_const_addr()
returnself.operand.check_const_addr()
deferror(self,mess):
error(self.pos,mess)
...
...
@@ -4245,7 +4252,7 @@ class TypecastNode(ExprNode):
self.gil_error()
defcheck_const(self):
self.operand.check_const()
returnself.operand.check_const()
defcalculate_constant_result(self):
# we usually do not know the result of a type cast at code