From bff5a6e38c945833ddb22c379d57f556244a2e25 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 30 Aug 2021 15:37:15 -0400 Subject: Add __str__ for Architecture --- python/architecture.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') diff --git a/python/architecture.py b/python/architecture.py index 145abe3b..0b46c8ff 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -483,6 +483,9 @@ class Architecture(metaclass=_ArchitectureMetaClass): def __hash__(self): return hash(ctypes.addressof(self.handle.contents)) + def __str__(self): + return self.name + @classmethod def register(cls) -> None: binaryninja._init_plugins() -- cgit v1.3.1