Home
last modified time | relevance | path

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

123

/third_party/python/Lib/test/
Dtest_codeop.py305 self.assertEqual(compile_command("a = 1\n", "abc").co_filename,
306 compile("a = 1\n", "abc", 'single').co_filename)
307 self.assertNotEqual(compile_command("a = 1\n", "abc").co_filename,
308 compile("a = 1\n", "def", 'single').co_filename)
Dtest_marshal.py126 self.assertEqual(co1.co_filename, "f1")
127 self.assertEqual(co2.co_filename, "f2")
136 self.assertIs(co.co_filename, obj.co_filename)
Dtest_code.py169 self.assertEqual(co.co_filename, "filename")
226 co.co_filename,
Dtest_compile.py447 self.assertEqual(co2.co_filename, '%s3' % fname)
475 self.assertEqual(code.co_filename, 'file.py')
479 self.assertEqual(code.co_filename, 'file.py')
488 self.assertIs(obj.co_filename, c.co_filename)
Dtest_bdb.py116 filename = code.co_filename
322 fname = self.canonic(self.frame.f_code.co_filename)
377 lineno = self.lno_rel2abs(self.frame.f_code.co_filename,
/third_party/python/Objects/clinic/
Dcodeobject.c.h162 PyObject *co_cellvars, PyObject *co_filename,
186 PyObject *co_filename = self->co_filename; in code_replace() local
328 co_filename = args[13]; in code_replace()
352 …, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, co_name, co_li… in code_replace()
/third_party/python/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
/third_party/python/Python/
Dtraceback.c566 code->co_filename != last_file || in tb_printinternal()
572 last_file = code->co_filename; in tb_printinternal()
579 err = tb_displayline(f, code->co_filename, tb->tb_lineno, in tb_printinternal()
779 if (code->co_filename != NULL in dump_frame()
780 && PyUnicode_Check(code->co_filename)) in dump_frame()
783 _Py_DumpASCII(fd, code->co_filename); in dump_frame()
Dimport.c824 pathname = ((PyCodeObject *)co)->co_filename; in PyImport_ExecCodeModuleObject()
851 if (PyUnicode_Compare(co->co_filename, oldname)) in update_code_filenames()
855 Py_XSETREF(co->co_filename, newname); in update_code_filenames()
872 if (PyUnicode_Compare(co->co_filename, newname) == 0) in update_compiled_module()
875 oldname = co->co_filename; in update_compiled_module()
1292 now_in_importlib = _PyUnicode_EqualToASCIIString(code->co_filename, importlib_filename) || in remove_importlib_frames()
1293 _PyUnicode_EqualToASCIIString(code->co_filename, external_filename); in remove_importlib_frames()
/third_party/python/Objects/
Dcodeobject.c257 co->co_filename = filename; in PyCode_NewWithPosOnlyArgs()
396 {"co_filename", T_OBJECT, OFF(co_filename), READONLY},
663 Py_XDECREF(co->co_filename); in code_dealloc()
729 PyObject *co_cellvars, PyObject *co_filename, in code_replace_impl() argument
751 co_code, co_filename, co_name, co_argcount, in code_replace_impl()
760 co_varnames, co_freevars, co_cellvars, co_filename, co_name, in code_replace_impl()
772 if (co->co_filename && PyUnicode_Check(co->co_filename)) { in code_repr()
775 co->co_name, co, co->co_filename, lineno); in code_repr()
/third_party/python/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.py223 filename = self.canonic(frame.f_code.co_filename)
254 return self.canonic(frame.f_code.co_filename) in self.breaks
562 filename = self.canonic(frame.f_code.co_filename)
867 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))
Dpdb.py257 if (self.mainpyfile != self.canonic(frame.f_code.co_filename)
667 filename = code.co_filename
694 filename = self.curframe.f_code.co_filename
1250 filename = self.curframe.f_code.co_filename
1267 filename = self.curframe.f_code.co_filename
1546 self.mainpyfile = self.canonic(code.co_filename)
Dwarnings.py274 filename = frame.f_code.co_filename
317 filename = frame.f_code.co_filename
DcProfile.py126 return (code.co_filename, code.co_firstlineno, code.co_name)
/third_party/mindspore/mindspore/
Dlog.py446 log_file = os.path.normcase(f.f_code.co_filename)
451 filename = os.path.normcase(co.co_filename)
457 rv = (co.co_filename, f.f_lineno, co.co_name, sinfo)
/third_party/python/Lib/asyncio/
Dformat_helpers.py14 return (code.co_filename, code.co_firstlineno)
Dbase_tasks.py66 filename = co.co_filename
Dcoroutines.py247 filename = coro_code.co_filename or '<empty co_filename>'
/third_party/python/Include/cpython/
Dcode.h39 PyObject *co_filename; /* unicode (where it was loaded from) */ member
/third_party/python/Lib/test/test_importlib/
Dtest_abc.py535 self.assertEqual(code.co_filename, path)
542 self.assertEqual(code.co_filename, '<string>')
659 self.assertEqual(code.co_filename, path)
689 self.assertEqual(code.co_filename, '<string>')
/third_party/python/Tools/gdb/
Dlibpython.py867 self.co_filename = self.co.pyop_field('co_filename')
933 return self.co_filename.proxyval(set())
990 self.co_filename.proxyval(visited),
1013 % (self.co_filename.proxyval(visited),
/third_party/python/Lib/logging/
D__init__.py181 _srcfile = os.path.normcase(addLevelName.__code__.co_filename)
1027 while (frame and os.path.dirname(frame.f_code.co_filename) ==
1568 filename = os.path.normcase(co.co_filename)
1581 rv = (co.co_filename, f.f_lineno, co.co_name, sinfo)

123