diff --git a/bindings/python/capstone/__init__.py b/bindings/python/capstone/__init__.py index d5ea918b80..2afa550022 100644 --- a/bindings/python/capstone/__init__.py +++ b/bindings/python/capstone/__init__.py @@ -539,6 +539,9 @@ def __init__(self, cs, all_info): self._raw.detail = ctypes.pointer(all_info.detail._type_()) ctypes.memmove(ctypes.byref(self._raw.detail[0]), ctypes.byref(all_info.detail[0]), ctypes.sizeof(type(all_info.detail[0]))) + def __repr__(self): + return '' % (self.address, self.bytes.hex(), self.mnemonic, self.op_str) + # return instruction's ID. @property def id(self):