End List Evaluation Property

if the following are true:
  • expression state at time t = "call_function_begin"
  • parent stack at time t = [ ]
  • the expression at time t = Python list elements

then expression state at time (t + 1) = "end_expr"

In the "call_function_begin" state, LW Python creates the new Python list object and appends it to the Object Store, among other things. LW Python has finished evaluating the Python list, so the state is changed to "end_expr." For example, if the following are true:

  • expression state at time 12 = "call_function_begin"
  • parent stack at time 12 = [ ]
  • the expression at time 12 = [2, 4, 6]

then expression state at time (12 + 1) = "end_expr"

Try stepping through the simulator to see the "Expression State" change from "call_function_begin" to "end_expr."

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments