Searched refs:as_const (Results 1 – 3 of 3) sorted by relevance
354 def as_const(self, eval_ctx=None): member in Expr378 def as_const(self, eval_ctx=None): member in BinExpr386 return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))397 def as_const(self, eval_ctx=None): member in UnaryExpr405 return f(self.node.as_const(eval_ctx))438 def as_const(self, eval_ctx=None): member in Const457 def as_const(self, eval_ctx=None): member in TemplateData473 def as_const(self, eval_ctx=None): member in Tuple475 return tuple(x.as_const(eval_ctx) for x in self.items)488 def as_const(self, eval_ctx=None): member in List[all …]
42 val = self.visit(node.test).as_const()58 return nodes.Const.from_untrusted(node.as_const(),
1235 const = child.as_const(frame.eval_ctx)1389 self.write(repr(node.as_const(frame.eval_ctx)))1626 val = keyword.value.as_const(frame.eval_ctx)