Lines Matching refs:value

96 def _parse_value_tb(exc, value, tb):
97 if (value is _sentinel) != (tb is _sentinel):
98 raise ValueError("Both or neither of value and tb must be given")
99 if value is tb is _sentinel:
104 raise TypeError(f'Exception expected for value, '
108 return value, tb
111 def print_exception(exc, /, value=_sentinel, tb=_sentinel, limit=None, \
117 call last):"; (2) it prints the exception type and value after the
118 stack trace; (3) if type is SyntaxError and value has the
123 value, tb = _parse_value_tb(exc, value, tb)
124 te = TracebackException(type(value), value, tb, limit=limit, compact=True)
128 def format_exception(exc, /, value=_sentinel, tb=_sentinel, limit=None, \
133 to print_exception(). The return value is a list of strings, each
138 value, tb = _parse_value_tb(exc, value, tb)
139 te = TracebackException(type(value), value, tb, limit=limit, compact=True)
143 def format_exception_only(exc, /, value=_sentinel):
146 The return value is a list of strings, each ending in a newline.
157 if value is _sentinel:
158 value = exc
159 te = TracebackException(type(value), value, None, compact=True)
165 def _format_final_exc_line(etype, value):
166 valuestr = _safe_string(value, 'exception')
167 if value is None or not valuestr:
173 def _safe_string(value, what, func=str):
175 return func(value)
223 The return value has the same format as for extract_tb(). The
508 for name, value in sorted(frame_summary.locals.items()):
509 row.append(' {name} = {value}\n'.format(name=name, value=value))
608 subscript_start = normalize(expr.value.end_col_offset)
658 - :attr:`__suppress_context__` The *__suppress_context__* value from the
808 The return value is a generator of strings, each ending in a newline.
881 The return value is a generator of strings, each ending in a newline and