Home
last modified time | relevance | path

Searched refs:traceback (Results 1 – 25 of 243) sorted by relevance

12345678910

/third_party/python/Lib/test/
Dtest_traceback.py16 import traceback
32 return traceback.format_exception_only(exc, value)
96 err = traceback.format_exception_only(SyntaxError, exc)
117 lst = traceback.format_exception_only(e.__class__, e)
124 err = traceback.format_exception_only(X, X())
234 traceback.print_exception(
241 traceback.print_exception(Exception("projector"), file=output)
246 output = traceback.format_exception(e)
249 traceback.format_exception(e.__class__, e)
251 traceback.format_exception(e.__class__, tb=e.__traceback__)
[all …]
Dtest_tracemalloc.py78 def traceback(*frames): function
82 return traceback((filename, lineno))
131 traceback = tracemalloc.get_object_traceback(obj)
132 self.assertEqual(traceback, obj_traceback)
150 traceback = tracemalloc.get_object_traceback(obj)
151 self.assertIsNotNone(traceback)
152 self.assertEqual(traceback, obj_traceback)
163 traceback = tracemalloc.get_object_traceback(obj2)
164 self.assertEqual(len(traceback), 10)
165 self.assertEqual(traceback, obj2_traceback)
[all …]
Dtest_sys.py341 import traceback
385 stack = traceback.extract_stack(frame)
406 import traceback
452 stack = traceback.extract_stack(exc_tb.tb_frame)
952 traceback = [
959 check(10, traceback)
960 check(3, traceback)
961 check(2, traceback[:1] + traceback[2:])
962 check(1, traceback[:1] + traceback[3:])
963 check(0, [traceback[-1]])
[all …]
/third_party/python/Lib/
Dtracemalloc.py37 def __init__(self, traceback, size, count): argument
38 self.traceback = traceback
43 return hash((self.traceback, self.size, self.count))
48 return (self.traceback == other.traceback
54 % (self.traceback,
64 % (self.traceback, self.size, self.count))
67 return (self.size, self.count, self.traceback)
77 def __init__(self, traceback, size, size_diff, count, count_diff): argument
78 self.traceback = traceback
85 return hash((self.traceback, self.size, self.size_diff,
[all …]
Dcontextlib.py26 def __exit__(self, exc_type, exc_value, traceback): argument
48 async def __aexit__(self, exc_type, exc_value, traceback): argument
139 def __exit__(self, typ, value, traceback): argument
153 self.gen.throw(typ, value, traceback)
203 async def __aexit__(self, typ, value, traceback): argument
217 await self.gen.athrow(typ, value, traceback)
Dcode.py9 import traceback
124 lines = traceback.format_exception_only(type, value)
142 lines = traceback.format_exception(ei[0], ei[1], last_tb.tb_next)
/third_party/python/Modules/
D_tracemalloc.c99 traceback_t *traceback; member
267 const traceback_t *traceback = (const traceback_t *)key; in hashtable_hash_traceback() local
268 return traceback->hash; in hashtable_hash_traceback()
362 traceback_hash(traceback_t *traceback) in traceback_hash() argument
366 int len = traceback->nframe; in traceback_hash()
371 frame = traceback->frames; in traceback_hash()
381 x ^= traceback->total_nframe; in traceback_hash()
388 traceback_get_frames(traceback_t *traceback) in traceback_get_frames() argument
400 if (traceback->nframe < _Py_tracemalloc_config.max_nframe) { in traceback_get_frames()
401 tracemalloc_get_frame(pyframe, &traceback->frames[traceback->nframe]); in traceback_get_frames()
[all …]
/third_party/python/Doc/library/
Dtraceback.rst1 :mod:`traceback` --- Print or retrieve a stack traceback
4 .. module:: traceback
5 :synopsis: Print or retrieve a stack traceback.
7 **Source code:** :source:`Lib/traceback.py`
17 .. index:: object: traceback
19 The module uses traceback objects --- this is the object type that is stored in
28 Print up to *limit* stack trace entries from traceback object *tb* (starting
42 Print exception information and stack trace entries from traceback object
105 stack trace entries extracted from the traceback object *tb*. It is useful
118 Extract the raw traceback from the current stack frame. The return value has
[all …]
Dcgitb.rst5 :synopsis: Configurable traceback handler for CGI scripts.
22 traceback information in HTML for CGI scripts. It was later generalized to also
25 report includes a traceback showing excerpts of the source code for each level,
48 suppress sending the traceback to the browser. If the argument *logdir* is
49 present, the traceback reports are written to files. The value of *logdir*
52 of source code in the traceback; this defaults to ``5``. If the optional
60 the result of :func:`sys.exc_info`), formatting its traceback as text and
63 in the traceback; this defaults to ``5``.
69 the result of :func:`sys.exc_info`), formatting its traceback as HTML and
72 in the traceback; this defaults to ``5``.
[all …]
Dfaulthandler.rst1 :mod:`faulthandler` --- Dump the Python traceback
5 :synopsis: Dump the Python traceback.
21 traceback even on a stack overflow.
25 this limitation traceback dumping is minimal compared to normal Python
36 By default, the Python traceback is written to :data:`sys.stderr`. To see
47 Dumping the traceback
66 signals to dump the Python traceback. If *all_threads* is ``True``,
106 The *file* must be kept open until the traceback is dumped or
123 Dumping the traceback on a user signal
129 the traceback of all threads, or of the current thread if *all_threads* is
[all …]
Dtracemalloc.rst120 Get the traceback of a memory block
123 Code to display the traceback of the biggest memory block::
133 top_stats = snapshot.statistics('traceback')
138 for line in stat.traceback.format():
141 Example of output of the Python test suite (traceback limited to 25 frames)::
179 load data (bytecode and constants) from modules: ``870.1 KiB``. The traceback is
181 line of the :mod:`doctest` module. The traceback may change if a new module is
204 frame = stat.traceback[0]
309 Get the traceback where the Python object *obj* was allocated.
319 Get the maximum number of frames stored in the traceback of a trace.
[all …]
/third_party/python/Python/
Dsuggestions.c200 PyTracebackObject *traceback = (PyTracebackObject *) exc->traceback; // borrowed reference in offer_suggestions_for_name_error() local
204 traceback == NULL || !Py_IS_TYPE(traceback, &PyTraceBack_Type) in offer_suggestions_for_name_error()
211 PyTracebackObject *next = traceback->tb_next; in offer_suggestions_for_name_error()
216 traceback = next; in offer_suggestions_for_name_error()
220 PyFrameObject *frame = traceback->tb_frame; in offer_suggestions_for_name_error()
/third_party/python/Lib/test/test_importlib/partial/
Dcfimport.py4 import traceback
15 traceback.print_exc()
22 traceback.print_exc()
Dpool_in_threads.py4 import traceback
12 traceback.print_exc()
/third_party/python/Lib/asyncio/
Dformat_helpers.py5 import traceback
72 stack = traceback.StackSummary.extract(traceback.walk_stack(f),
Dbase_tasks.py2 import traceback
82 traceback.print_list(extracted_list, file=file)
84 for line in traceback.format_exception_only(exc.__class__, exc):
Dcoroutines.py8 import traceback
64 def throw(self, type, value=None, traceback=None): argument
65 return self.gen.throw(type, value, traceback)
97 tb = ''.join(traceback.format_list(tb))
/third_party/PyYAML/tests/lib/
Dtest_appliance.py2 import sys, os, os.path, types, traceback, pprint
67 traceback.print_exc(limit=1, file=sys.stdout)
95 traceback.print_exception(file=sys.stdout, *info)
98 traceback.print_tb(info[2], file=sys.stdout)
/third_party/python/Tools/peg_generator/pegen/
D__main__.py12 import traceback
44 traceback.print_exception(err.__class__, err, None)
69 traceback.print_exception(err.__class__, err, None)
/third_party/python/Tools/demo/
Drpythond.py14 import traceback
49 traceback.print_exc(100)
/third_party/python/Lib/idlelib/
Drun.py15 import traceback
182 traceback.print_exception(type, value, tb, file=sys.__stderr__)
232 return traceback.format_exception_only(typ, exc)
259 tbe = traceback.extract_tb(tb)
264 traceback.print_list(tbe, file=efile)
419 traceback.print_exc(limit=-20, file=erf)
Ddebugger_r.py50 traceback = info[2]
51 assert isinstance(traceback, types.TracebackType)
52 traceback_id = id(traceback)
53 tracebacktable[traceback_id] = traceback
/third_party/node/deps/v8/tools/testrunner/local/
Dpool.py11 import traceback
83 traceback.print_exc()
208 traceback.print_exc()
/third_party/python/Include/internal/
Dpycore_pyerrors.h36 PyObject **traceback);
46 PyObject *traceback);
/third_party/python/Parser/
Dpegen_errors.c160 PyObject *type, *value, *traceback; in _PyPegen_tokenize_full_source_to_check_for_errors() local
161 PyErr_Fetch(&type, &value, &traceback); in _PyPegen_tokenize_full_source_to_check_for_errors()
195 Py_XDECREF(traceback); in _PyPegen_tokenize_full_source_to_check_for_errors()
197 PyErr_Restore(type, value, traceback); in _PyPegen_tokenize_full_source_to_check_for_errors()

12345678910