Lines Matching refs:value
201 None, this function may replace that value with a context-specific
277 value if not isinstance(value, str) else eval(value, globals, locals)
278 for key, value in ann.items() }
440 send resumes the generator and "sends" a value that becomes
540 for name, value in object.__dict__.items():
541 if getattr(value, "__isabstractmethod__", False):
545 value = getattr(object, name, None)
546 if getattr(value, "__isabstractmethod__", False):
569 # First try to get the value via getattr. Some descriptors don't
573 value = getter(object, key)
580 value = base.__dict__[key]
586 if not predicate or predicate(value):
587 results.append((key, value))
593 """Return all members of an object as (name, value) pairs sorted by name.
598 """Return all members of an object as (name, value) pairs sorted by name
743 the callback returns a true value. If the callback never returns a true
744 value, the last object in the chain is returned as usual. For example,
1466 formatvalue=lambda value: '=' + repr(value)):
1549 for kw, value in named.items():
1554 arg2value[varkw][kw] = value
1559 arg2value[kw] = value
2013 # Set the new default value
2021 # Set the new default value
2215 value = eval(s, module_dict)
2218 value = eval(s, sys_module_dict)
2222 if isinstance(value, (str, int, float, bytes, bool, type(None))):
2223 return ast.Constant(value)
2232 n = n.value
2236 value = ".".join(reversed(a))
2237 return wrap_value(value)
2252 return ast.Constant(left.value + right.value)
2254 return ast.Constant(left.value - right.value)
2256 return ast.Constant(left.value | right.value)
2638 value = len(cls.__members__)
2639 member = int.__new__(cls, value)
2640 member._value_ = value
2662 The default value for the parameter if specified. If the
2663 parameter has no default value, this attribute is set to
2690 raise ValueError(f'value {kind!r} is not a valid Parameter.kind')
2777 # Add annotation and default value
2937 for arg, value in self.arguments.items():
2938 args.append('{}={!r}'.format(arg, value))
3113 # That's fine too - we have a default value for this
3176 # We have no value for this parameter. It's fine though,
3177 # if it has a default value, or it is an '*args'-like