added __repr__ to MemoryFlags

float_support
Anton Lydike 4 years ago
parent c4a28c9d1b
commit f43c33b0d7

@ -14,6 +14,13 @@ class MemoryFlags:
read_only: bool read_only: bool
executable: bool executable: bool
def __repr__(self):
return "{}({},{})".format(
self.__class__.__name__,
'ro' if self.read_only else 'rw',
'x' if self.executable else '-'
)
@dataclass @dataclass
class MemorySection: class MemorySection:

Loading…
Cancel
Save