From 25e7218ccaf84025179d17723077218294312921 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 17 Oct 2024 17:01:28 -0400 Subject: Python API : Update .operands documentation --- python/highlevelil.py | 6 +++++- python/lowlevelil.py | 6 +++++- python/mediumlevelil.py | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/highlevelil.py b/python/highlevelil.py index 8a400c1e..1d7feb71 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -778,7 +778,11 @@ class HighLevelILInstruction(BaseILInstruction): @property def operands(self) -> List[HighLevelILOperandType]: - """Operands for the instruction""" + """ + Operands for the instruction + + Consider using more specific APIs for ``src``, ``dest``, ``params``, etc where appropriate. + """ return list(map(lambda x: x[1], self.detailed_operands)) @property diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 3cd4e7cc..dbb9f154 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -699,7 +699,11 @@ class LowLevelILInstruction(BaseILInstruction): @property def operands(self) -> List[LowLevelILOperandType]: - """Operands for the instruction""" + """ + Operands for the instruction + + Consider using more specific APIs for ``src``, ``dest``, ``params``, etc where appropriate. + """ return list(map(lambda x: x[1], self.detailed_operands)) @property diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index fc9ba398..267076db 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -447,7 +447,11 @@ class MediumLevelILInstruction(BaseILInstruction): @property def operands(self) -> List[MediumLevelILOperandType]: - """Operands for the instruction""" + """ + Operands for the instruction + + Consider using more specific APIs for ``src``, ``dest``, ``params``, etc where appropriate. + """ return list(map(lambda x: x[1], self.detailed_operands)) @property -- cgit v1.3.1