Lines Matching refs:expr
3852 def err_occurred_if(self, expr, data):
3853 data.return_conversion.append('if (({}) && PyErr_Occurred()) {{\n goto exit;\n}}\n'.format(expr))
4648 expr = module.body[0].value
4650 if isinstance(expr, ast.Name) and expr.id == 'NULL':
4654 elif (isinstance(expr, ast.BinOp) or
4655 (isinstance(expr, ast.UnaryOp) and
4656 not (isinstance(expr.operand, ast.Num) or
4658 isinstance(expr.operand, ast.Constant) and
4659 type(expr.operand.value) in (int, float, complex)))
4663 fail("When you specify an expression (" + repr(default) + ") as your default value,\nyou MUST specify a valid c_default." + ast.dump(expr))
4666 elif isinstance(expr, ast.Attribute):
4668 n = expr
4686 value = ast.literal_eval(expr)