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

Method __init__

Tools/gdb/libpython.py:1055–1068  ·  view source on GitHub ↗
(self, gdbval)

Source from the content-addressed store, hash-verified

1053class PyFramePtr:
1054
1055 def __init__(self, gdbval):
1056 self._gdbval = gdbval
1057 if self.is_optimized_out():
1058 return
1059 self.co = self._f_code()
1060 if self.is_shim():
1061 return
1062 self.co_name = self.co.pyop_field('co_name')
1063 self.co_filename = self.co.pyop_field('co_filename')
1064
1065 self.f_lasti = self._f_lasti()
1066 self.co_nlocals = int_from_int(self.co.field('co_nlocals'))
1067 pnames = self.co.field('co_localsplusnames')
1068 self.co_localsplusnames = PyTupleObjectPtr.from_pyobject_ptr(pnames)
1069
1070 @staticmethod
1071 def get_thread_state():

Callers

nothing calls this directly

Calls 8

is_optimized_outMethod · 0.95
_f_codeMethod · 0.95
is_shimMethod · 0.95
_f_lastiMethod · 0.95
int_from_intFunction · 0.85
pyop_fieldMethod · 0.80
fieldMethod · 0.80
from_pyobject_ptrMethod · 0.80

Tested by

no test coverage detected