Instruction.get_dests()
Returns the list of Value objects representing the destination(s) of the instruction. This function returns the list to accommodate cases like 'a= b = c= 5', where the destinations are [a, b, c].
get_dests() → APIList[
Value
|
NoneObject
]
Query Example
from glider import *
def query():
instruction = Instructions().exec(1,1)
dests = instruction[0].get_dests()
for dest in dests:
print(dest.expression)
return [instruction[0]]
Example Output

Last updated