MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / __getitem__

Method __getitem__

python/interaction.py:1001–1006  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

999 raise TypeError("invalid report type %s" % repr(report_type))
1000
1001 def __getitem__(self, i):
1002 if isinstance(i, slice) or isinstance(i, tuple):
1003 raise IndexError("expected integer report index")
1004 if (i < 0) or (i >= len(self)):
1005 raise IndexError("index out of range")
1006 return self._report_from_index(i)
1007
1008 def __iter__(self):
1009 count = len(self)

Callers

nothing calls this directly

Calls 1

_report_from_indexMethod · 0.95

Tested by

no test coverage detected