Home
last modified time | relevance | path

Searched refs:co_filename (Results 1 – 25 of 119) sorted by relevance

12345

/external/tensorflow/tensorflow/python/platform/
Dtf_logging.py51 our_file = f.f_code.co_filename
55 if code.co_filename != our_file:
70 return (code.co_filename, frame.f_lineno, code.co_name, sinfo)
81 return (code.co_filename, frame.f_lineno, code.co_name, sinfo)
88 return (code.co_filename, frame.f_lineno, code.co_name)
275 return (code.co_filename, f.f_lineno)
Dbenchmark.py64 func_code.co_filename, name,
75 func_code.co_filename, name,
83 func_code.co_filename, name,
/external/python/cpython3/Objects/clinic/
Dcodeobject.c.h26 PyObject *co_cellvars, PyObject *co_filename,
50 PyObject *co_filename = self->co_filename; in code_replace() local
227 co_filename = args[13]; in code_replace()
251 …, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, co_name, co_ln… in code_replace()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dpyperf.h66 void* co_filename; // PyCodeObject.co_filename member
95 bpf_probe_read_user(&frame->co_filename, in get_frame_data()
96 sizeof(frame->co_filename), in get_frame_data()
102 if (frame->co_filename) in get_frame_data()
105 frame->co_filename + in get_frame_data()
/external/python/cpython2/Lib/test/
Dtest_codeop.py293 self.assertEqual(compile_command("a = 1\n", "abc").co_filename,
294 compile("a = 1\n", "abc", 'single').co_filename)
295 self.assertNotEqual(compile_command("a = 1\n", "abc").co_filename,
296 compile("a = 1\n", "def", 'single').co_filename)
Dtest_traceback.py216 file = prn.__code__.co_filename
229 file = fmt.__code__.co_filename
248 file = extract.__code__.co_filename
/external/python/cpython3/Lib/test/
Dtest_codeop.py302 self.assertEqual(compile_command("a = 1\n", "abc").co_filename,
303 compile("a = 1\n", "abc", 'single').co_filename)
304 self.assertNotEqual(compile_command("a = 1\n", "abc").co_filename,
305 compile("a = 1\n", "def", 'single').co_filename)
Dtest_parser.py869 self.assertEqual(code.co_filename, '<syntax-tree>')
871 self.assertEqual(code.co_filename, '<syntax-tree>')
874 self.assertEqual(code.co_filename, 'file.py')
876 self.assertEqual(code.co_filename, 'file.py')
880 self.assertEqual(code.co_filename, 'file.py')
883 self.assertEqual(code.co_filename, 'file.py')
Dtest_compile.py445 self.assertEqual(co2.co_filename, '%s3' % fname)
473 self.assertEqual(code.co_filename, 'file.py')
477 self.assertEqual(code.co_filename, 'file.py')
486 self.assertIs(obj.co_filename, c.co_filename)
/external/tensorflow/tensorflow/python/util/
Dfunction_utils_test.py279 self.assertRegex(code.co_filename, 'function_utils_test.py')
284 self.assertRegex(code.co_filename, 'function_utils_test.py')
290 self.assertRegex(code.co_filename, 'function_utils_test.py')
296 self.assertRegex(code.co_filename, 'function_utils_test.py')
Dstack_trace.cc57 const char* file_name = GetPythonString(code_obj.first->co_filename); in ToStackFrames()
/external/python/cpython3/Objects/
Dcodeobject.c249 co->co_filename = filename; in PyCode_NewWithPosOnlyArgs()
388 {"co_filename", T_OBJECT, OFF(co_filename), READONLY},
578 Py_XDECREF(co->co_filename); in code_dealloc()
644 PyObject *co_cellvars, PyObject *co_filename, in code_replace_impl() argument
666 co_code, co_filename, co_name, co_argcount, in code_replace_impl()
675 co_varnames, co_freevars, co_cellvars, co_filename, co_name, in code_replace_impl()
687 if (co->co_filename && PyUnicode_Check(co->co_filename)) { in code_repr()
690 co->co_name, co, co->co_filename, lineno); in code_repr()
/external/python/cpython2/Lib/
Dtraceback.py64 filename = co.co_filename
98 filename = co.co_filename
303 filename = co.co_filename
Dbdb.py127 filename = self.canonic(frame.f_code.co_filename)
152 return self.canonic(frame.f_code.co_filename) in self.breaks
364 filename = self.canonic(frame.f_code.co_filename)
623 fn = self.canonic(frame.f_code.co_filename)
Dtrace.py531 filename = code.co_filename
616 filename = frame.f_code.co_filename
631 filename = frame.f_code.co_filename
643 filename = frame.f_code.co_filename
/external/python/cpython2/Objects/
Dcodeobject.c139 co->co_filename = filename; in PyCode_New()
211 {"co_filename", T_OBJECT, OFF(co_filename), READONLY},
353 Py_XDECREF(co->co_filename); in code_dealloc()
373 if (co->co_filename && PyString_Check(co->co_filename)) in code_repr()
374 filename = PyString_AS_STRING(co->co_filename); in code_repr()
/external/python/cpython3/Python/
Dtraceback.c565 code->co_filename != last_file || in tb_printinternal()
571 last_file = code->co_filename; in tb_printinternal()
578 err = tb_displayline(f, code->co_filename, tb->tb_lineno, in tb_printinternal()
758 if (code->co_filename != NULL in dump_frame()
759 && PyUnicode_Check(code->co_filename)) in dump_frame()
762 _Py_DumpASCII(fd, code->co_filename); in dump_frame()
/external/python/cpython2/Lib/idlelib/
DDebugger.py33 if frame.f_code.co_filename.count('rpc.py'):
37 if prev_frame.f_code.co_filename.count('Debugger.py'):
44 filename = code.co_filename
258 filename = code.co_filename
395 filename = code.co_filename
448 filename = code.co_filename
DStackViewer.py71 filename = code.co_filename
95 filename = frame.f_code.co_filename
/external/python/cpython3/Lib/idlelib/
Ddebugger.py36 if frame.f_code.co_filename.count('rpc.py'):
40 prev_name = prev_frame.f_code.co_filename
49 filename = code.co_filename
263 filename = code.co_filename
399 filename = code.co_filename
451 filename = code.co_filename
Dstackviewer.py73 filename = code.co_filename
97 filename = frame.f_code.co_filename
/external/python/cpython3/Lib/
Dtrace.py469 filename = code.co_filename
554 filename = frame.f_code.co_filename
569 filename = frame.f_code.co_filename
581 filename = frame.f_code.co_filename
706 sys.argv = [code.co_filename, *opts.arguments]
709 '__file__': code.co_filename,
Dbdb.py221 filename = self.canonic(frame.f_code.co_filename)
252 return self.canonic(frame.f_code.co_filename) in self.breaks
545 filename = self.canonic(frame.f_code.co_filename)
844 fn = self.canonic(frame.f_code.co_filename)
/external/python/cpython2/Include/
Dcode.h23 PyObject *co_filename; /* string (where it was loaded from) */ member
/external/tensorflow/tensorflow/python/framework/
Dtraceable_stack.py65 self.filename = frame.f_code.co_filename

12345