Home | History | Annotate | Download | only in python2.7

Lines Matching refs:code

102                       any code.  `--file' must specify the results file to
130 # Simple rx to find lines with no code.
393 def find_lines_from_code(code, strs):
397 for _, lineno in dis.findlinestarts(code):
403 def find_lines(code, strs):
404 """Return lineno dict for all code objects reachable from code."""
405 # get all of the lineno information from the code of this scope level
406 linenos = find_lines_from_code(code, strs)
408 # and check the constants for references to other code objects
409 for c in code.co_consts:
411 # find another code object, so recurse into it
446 code = compile(prog, filename, "exec")
448 return find_lines(code, strs)
530 code = frame.f_code
531 filename = code.co_filename
537 funcname = code.co_name
539 if code in self._caller_cache:
540 if self._caller_cache[code] is not None:
541 clsname = self._caller_cache[code]
543 self._caller_cache[code] = None
545 # all functions which refer to this code object
546 funcs = [f for f in gc.get_referrers(code)
564 self._caller_cache[code] = clsname
593 If the code block being entered is to be ignored, returns `None',
597 code = frame.f_code
608 % (modulename, code.co_name))
799 code = compile(fp.read(), progname, 'exec')
807 t.runctx(code, globs, globs)