Lines Matching defs:Or
117 or arbitrary values. Fields are passed to the constructor as regular
135 raise TypeError('%r takes 0 or %d argument%s' % (
138 len(self.fields) != 1 and 's' or ''
152 parameter or to exclude some using the `exclude` parameter. Both
153 should be sets or tuples of field names.
156 if (exclude is only is None) or \
157 (exclude is not None and name not in exclude) or \
214 if node.lineno is None or override:
277 :class:`Name` or :class:`Tuple`), `iter` the iterable. `body` is a list
355 """Return the value of the expression as constant or raise
411 """Looks up a name or stores a value in a name.
432 constants such as ``42`` or ``"foo"`` but it can be used to store more
469 is used for loading the names or storing.
551 if eval_ctx.volatile or self.node is None:
559 if filter_ is None or getattr(filter_, 'contextfilter', False):
594 and `dyn_kwargs` has to be either `None` or a node that is used as
595 node for dynamic positional (``*args``) or keyword (``**kwargs``)
634 """Get an attribute or item from an expression and prefer the item."""
652 """Get an attribute or item from an expression that is a ascii-only
772 class Or(BinExpr):
773 """Short circuited OR."""
774 operator = 'or'
778 return self.left.as_const(eval_ctx) or self.right.as_const(eval_ctx)