From: Dmitry Selyutin Date: Sat, 10 Jun 2023 18:20:33 +0000 (+0300) Subject: insndb/core: switch PCode to Tuple X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4aed467dbd229f42e6da9e2e246dcc76d7a9486;p=openpower-isa.git insndb/core: switch PCode to Tuple --- diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index defe898a..4f421328 100644 --- a/src/openpower/insndb/core.py +++ b/src/openpower/insndb/core.py @@ -924,16 +924,8 @@ class Arguments(tuple): return super().__new__(cls, items) -class PCode: - def __init__(self, iterable): - self.__pcode = tuple(iterable) - return super().__init__() - - def __iter__(self): - yield from self.__pcode - - def __repr__(self): - return self.__pcode.__repr__() +class PCode(Tuple, datatype=str): + pass class MarkdownRecord(Dataclass):