Home
last modified time | relevance | path

Searched refs:co_filename (Results 1 – 25 of 104) 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:
69 return (code.co_filename, frame.f_lineno, code.co_name, sinfo)
76 return (code.co_filename, frame.f_lineno, code.co_name)
263 return (code.co_filename, f.f_lineno)
/external/python/cpython3/Lib/test/
Dtest_codeop.py292 self.assertEqual(compile_command("a = 1\n", "abc").co_filename,
293 compile("a = 1\n", "abc", 'single').co_filename)
294 self.assertNotEqual(compile_command("a = 1\n", "abc").co_filename,
295 compile("a = 1\n", "def", 'single').co_filename)
Dtest_parser.py752 self.assertEqual(code.co_filename, '<syntax-tree>')
754 self.assertEqual(code.co_filename, '<syntax-tree>')
757 self.assertEqual(code.co_filename, 'file.py')
759 self.assertEqual(code.co_filename, 'file.py')
763 self.assertEqual(code.co_filename, 'file.py')
766 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)
Dtest_marshal.py125 self.assertEqual(co1.co_filename, "f1")
126 self.assertEqual(co2.co_filename, "f2")
135 self.assertIs(co.co_filename, obj.co_filename)
Dtest_code.py145 self.assertEqual(co.co_filename, "filename")
162 c.co_varnames, c.co_filename, c.co_name, c.co_firstlineno,
/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/tensorflow/tensorflow/python/util/
Dfunction_utils_test.py271 self.assertRegexpMatches(code.co_filename, 'function_utils_test.py')
276 self.assertRegexpMatches(code.co_filename, 'function_utils_test.py')
282 self.assertRegexpMatches(code.co_filename, 'function_utils_test.py')
288 self.assertRegexpMatches(code.co_filename, 'function_utils_test.py')
Dtf_stack.py63 filename = co.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/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/Python/
Dtraceback.c554 tb->tb_frame->f_code->co_filename != last_file || in tb_printinternal()
560 last_file = tb->tb_frame->f_code->co_filename; in tb_printinternal()
568 tb->tb_frame->f_code->co_filename, in tb_printinternal()
751 if (code != NULL && code->co_filename != NULL in dump_frame()
752 && PyUnicode_Check(code->co_filename)) in dump_frame()
755 _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/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
Dprofile.py289 fn = (fcode.co_filename, fcode.co_firstlineno, fcode.co_name)
371 self.co_filename = filename
377 return repr((self.co_filename, self.co_line, self.co_name))
/external/python/cpython3/Objects/
Dcodeobject.c212 co->co_filename = filename; in PyCode_New()
286 {"co_filename", T_OBJECT, OFF(co_filename), READONLY},
451 Py_XDECREF(co->co_filename); in code_dealloc()
487 if (co->co_filename && PyUnicode_Check(co->co_filename)) { in code_repr()
490 co->co_name, co, co->co_filename, lineno); in code_repr()
/external/python/cpython3/Lib/
Dtrace.py468 filename = code.co_filename
553 filename = frame.f_code.co_filename
568 filename = frame.f_code.co_filename
580 filename = frame.f_code.co_filename
Dbdb.py219 filename = self.canonic(frame.f_code.co_filename)
250 return self.canonic(frame.f_code.co_filename) in self.breaks
543 filename = self.canonic(frame.f_code.co_filename)
849 fn = self.canonic(frame.f_code.co_filename)
Dprofile.py268 fn = (fcode.co_filename, fcode.co_firstlineno, fcode.co_name)
350 self.co_filename = filename
356 return repr((self.co_filename, self.co_line, self.co_name))
/external/python/cpython2/Include/
Dcode.h23 PyObject *co_filename; /* string (where it was loaded from) */ member

12345