Instruction.get_parent()
Returns parent function/modifier of the instruction.
get_parent() → Callable | NoneObject
The function returns a Callable object, specifically either a Function or Modifier object, where the current instruction is placed.
Query Example
from glider import *
def query():
#return the parent function/modifier of an instruction
return [Instructions().exec(1)[0].get_parent()]
Output

Last updated