Lines Matching refs:file
287 __cached__ pathname to byte compiled file
489 co_filename name of file in which this code object was created
897 """Work out which source or compiled file an object was defined in."""
925 """Return the module name for a given file, or None."""
927 # Check for paths that look like an actual module file
962 """Return an absolute path to the source or compiled file for an object.
982 # Try the cache again with the absolute file name
984 file = getabsfile(object, _filename)
987 if file in modulesbyfile:
988 return sys.modules.get(modulesbyfile[file])
1002 if file in modulesbyfile:
1003 return sys.modules.get(modulesbyfile[file])
1056 """Return the entire source file and starting line number for an object.
1060 in the file and the line number indexes a line in that list. An OSError
1063 file = getsourcefile(object)
1064 if file:
1066 linecache.checkcache(file)
1068 file = getfile(object)
1072 if not (file.startswith('<') and file.endswith('>')):
1075 module = getmodule(object, file)
1077 lines = linecache.getlines(file, module.__dict__)
1079 lines = linecache.getlines(file)
1134 # Look for a comment block at the top of the file.
1241 original source file the first line of code was found. An OSError is
3308 print(msg, file=sys.stderr)
3318 print("Can't get info for builtin modules.", file=sys.stderr)