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