Home
last modified time | relevance | path

Searched refs:traceback (Results 1 - 25 of 141) sorted by relevance

123456

/third_party/python/Lib/
H A Dtracemalloc.py35 __slots__ = ('traceback', 'size', 'count')
37 def __init__(self, traceback, size, count):
38 self.traceback = traceback
43 return hash((self.traceback, self.size, self.count))
48 return (self.traceback == other.traceback
54 % (self.traceback,
63 return ('<Statistic traceback=%r size=%i count=%i>'
64 % (self.traceback, sel
292 def traceback(self): global() member in Trace
[all...]
H A Dcontextlib.py28 def __exit__(self, exc_type, exc_value, traceback):
50 async def __aexit__(self, exc_type, exc_value, traceback):
141 def __exit__(self, typ, value, traceback):
155 self.gen.throw(typ, value, traceback)
164 exc.__traceback__ = traceback
176 value.__traceback__ = traceback
188 exc.__traceback__ = traceback
208 async def __aexit__(self, typ, value, traceback):
222 await self.gen.athrow(typ, value, traceback)
231 exc.__traceback__ = traceback
[all...]
H A Dcode.py9 import traceback namespace
46 exception (SyntaxError or OverflowError). A syntax traceback
81 display a traceback. All exceptions are caught except
124 lines = traceback.format_exception_only(type, value)
142 lines = traceback.format_exception(ei[0], ei[1], last_tb.tb_next)
H A Dpy_compile.py13 import traceback namespace
49 tbtext = ''.join(traceback.format_exception_only(
/third_party/python/Lib/test/
H A Dtest_traceback.py1 """Test cases for traceback module"""
20 import traceback namespace
39 return traceback.format_exception_only(exc, value)
103 err = traceback.format_exception_only(SyntaxError, exc)
109 # in the traceback.
128 import traceback
132 traceback.print_exc()
192 lst = traceback.format_exception_only(e.__class__, e)
199 err = traceback.format_exception_only(X, X())
230 import traceback;
[all...]
H A 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_tracebac
[all...]
H A Dtest_sys.py407 import traceback namespace
451 stack = traceback.extract_stack(frame)
473 import traceback namespace
519 stack = traceback.extract_stack(exc_tb.tb_frame)
1054 traceback = [
1061 check(10, traceback)
1062 check(3, traceback)
1063 check(2, traceback[:1] + traceback[2:])
1064 check(1, traceback[
[all...]
/third_party/python/Modules/
H A D_tracemalloc.c83 /* Total number of frames the traceback had */
105 traceback_t *traceback; member
122 /* Buffer to store a new traceback in traceback_new().
273 const traceback_t *traceback = (const traceback_t *)key; in hashtable_hash_traceback() local
274 return traceback->hash; in hashtable_hash_traceback()
366 traceback_hash(traceback_t *traceback) in traceback_hash() argument
370 int len = traceback->nframe; in traceback_hash()
375 frame = traceback->frames; in traceback_hash()
385 x ^= traceback->total_nframe; in traceback_hash()
392 traceback_get_frames(traceback_t *traceback) in traceback_get_frames() argument
427 traceback_t *traceback; traceback_new() local
534 traceback_t *traceback = traceback_new(); tracemalloc_add_trace() local
1103 traceback_to_pyobject(traceback_t *traceback, _Py_hashtable_t *intern_table) traceback_to_pyobject() argument
1465 traceback_t *traceback; _tracemalloc__get_object_traceback() local
1500 traceback_t *traceback; _PyMem_DumpTraceback() local
1802 traceback_t *traceback = traceback_new(); _PyTraceMalloc_NewReference() local
1818 traceback_t *traceback; _PyTraceMalloc_GetTraceback() local
[all...]
/third_party/python/Python/
H A Dsuggestions.c203 PyTracebackObject *traceback = (PyTracebackObject *) exc->traceback; // borrowed reference in offer_suggestions_for_name_error() local
205 // or if we don't have a traceback to work with in offer_suggestions_for_name_error()
207 traceback == NULL || !Py_IS_TYPE(traceback, &PyTraceBack_Type) in offer_suggestions_for_name_error()
212 // Move to the traceback of the exception in offer_suggestions_for_name_error()
214 PyTracebackObject *next = traceback->tb_next; in offer_suggestions_for_name_error()
219 traceback = next; in offer_suggestions_for_name_error()
223 PyFrameObject *frame = traceback->tb_frame; in offer_suggestions_for_name_error()
H A Derrors.c33 PyObject *traceback) in _PyErr_Restore()
37 if (traceback != NULL && !PyTraceBack_Check(traceback)) { in _PyErr_Restore()
40 Py_DECREF(traceback); in _PyErr_Restore()
41 traceback = NULL; in _PyErr_Restore()
52 tstate->curexc_traceback = traceback; in _PyErr_Restore()
60 PyErr_Restore(PyObject *type, PyObject *value, PyObject *traceback) in PyErr_Restore() argument
63 _PyErr_Restore(tstate, type, value, traceback); in PyErr_Restore()
384 /* If the new exception doesn't set a traceback and the old in _PyErr_NormalizeException()
385 exception had a traceback, us in _PyErr_NormalizeException()
32 _PyErr_Restore(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *traceback) _PyErr_Restore() argument
541 PyErr_SetExcInfo(PyObject *type, PyObject *value, PyObject *traceback) PyErr_SetExcInfo() argument
[all...]
/third_party/python/Lib/test/test_importlib/partial/
H A Dcfimport.py4 import traceback namespace
15 traceback.print_exc()
22 traceback.print_exc()
H A Dpool_in_threads.py4 import traceback namespace
12 traceback.print_exc()
/third_party/python/Lib/asyncio/
H A Dformat_helpers.py5 import traceback namespace
63 """Replacement for traceback.extract_stack() that only does the
72 stack = traceback.StackSummary.extract(traceback.walk_stack(f),
H A Dbase_tasks.py3 import traceback namespace
89 traceback.print_list(extracted_list, file=file)
91 for line in traceback.format_exception_only(exc.__class__, exc):
/third_party/PyYAML/tests/lib/
H A Dtest_appliance.py2 import sys, os, os.path, types, traceback, pprint namespace
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/demo/
H A Drpythond.py14 import traceback namespace
49 traceback.print_exc(100)
/third_party/python/Lib/test/test_asyncio/
H A Dtest_futures2.py3 import traceback namespace
25 tb = ''.join(traceback.format_tb(e.__traceback__))
/third_party/python/Tools/peg_generator/pegen/
H A D__main__.py12 import traceback namespace
42 raise # Show traceback
43 traceback.print_exception(err.__class__, err, None)
44 sys.stderr.write("For full traceback, use -v\n")
67 raise # Show traceback
68 traceback.print_exception(err.__class__, err, None)
69 sys.stderr.write("For full traceback, use -v\n")
/third_party/python/Lib/idlelib/
H A Drun.py15 import traceback namespace
161 # queue.Empty traceback to event handling exceptions.
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)
H A Ddebugger_r.py19 barrier, in particular frame and traceback objects.
46 "replace info[2], a traceback instance, by its ID"
50 traceback = info[2]
51 assert isinstance(traceback, types.TracebackType)
52 traceback_id = id(traceback)
53 tracebacktable[traceback_id] = traceback
65 # pass frame and traceback object IDs instead of the objects themselves
314 # passing frame and traceback IDs, not the objects themselves
/third_party/python/Include/internal/
H A Dpycore_pyerrors.h38 PyObject **traceback);
48 PyObject *traceback);
/third_party/node/deps/v8/tools/testrunner/local/
H A Dpool.py11 import traceback namespace
83 traceback.print_exc()
208 traceback.print_exc()
/third_party/python/Lib/test/support/
H A Dtestresult.py9 import traceback namespace
92 msg = traceback.format_exception(err_type, err_value, None)
93 tb = traceback.format_exception(err_type, err_value, err_tb)
/third_party/skia/third_party/externals/angle2/scripts/
H A Drun_gtest_angle_test.py32 import traceback namespace
115 traceback.print_exc()
/third_party/skia/tools/skpbench/
H A D_hardware_android.py71 def __exit__(self, exception_type, exception_value, traceback):
72 Hardware.__exit__(self, exception_type, exception_value, traceback)

Completed in 14 milliseconds

123456