MCPcopy Index your code
hub / github.com/python/cpython / is_python_frame

Method is_python_frame

Tools/gdb/libpython.py:1765–1773  ·  view source on GitHub ↗

Is this a _PyEval_EvalFrameDefault frame, or some other important frame? (see is_other_python_frame for what "important" means in this context)

(self)

Source from the content-addressed store, hash-verified

1763 # - everything else
1764
1765 def is_python_frame(self):
1766 '''Is this a _PyEval_EvalFrameDefault frame, or some other important
1767 frame? (see is_other_python_frame for what "important" means in this
1768 context)'''
1769 if self.is_evalframe():
1770 return True
1771 if self.is_other_python_frame():
1772 return True
1773 return False
1774
1775 def is_evalframe(self):
1776 '''Is this a _PyEval_EvalFrameDefault frame?'''

Callers 2

move_in_stackFunction · 0.80

Calls 2

is_evalframeMethod · 0.95
is_other_python_frameMethod · 0.95

Tested by

no test coverage detected