Lines Matching refs:value
150 ``(key, value)`` tuples. Per default all fields are returned, but
166 over all fields and yields the values of they are nodes. If the value
179 return value is `None`.
258 value = getattr(node, field)
259 if isinstance(value, list):
261 for idx, item in enumerate(value):
267 _dump(value)
398 """Return the value of the expression as constant or raise
454 """Looks up a name or stores a value in a name.
457 - `store`: store a value in the name
469 """Reference to a namespace value assignment"""
491 fields = ('value',)
494 rv = self.value
504 def from_untrusted(cls, value, lineno=None, environment=None):
505 """Return a const object if the value is representable as
506 constant value in the generated code, otherwise it will raise
510 if not has_safe_repr(value):
512 return cls(value, lineno=lineno, environment=environment)
567 """A key, value pair for dicts."""
568 fields = ('key', 'value')
572 return self.key.as_const(eval_ctx), self.value.as_const(eval_ctx)
576 """A key, value pair for keyword arguments where key is a string."""
577 fields = ('key', 'value')
581 return self.key, self.value.as_const(eval_ctx)
774 result = value = self.expr.as_const(eval_ctx)
778 result = _cmpop_to_func[op.op](value, new_value)
779 value = new_value