Set Attribute Begin Parent Property

if the following are true:
  • expression state at time t = "begin_expr"
  • the expression at time t = obj.key = value

then parent stack at time (t + 1) = [ obj.key = value, parent stack at time t ]

As with any expression, when the "Expression State" is "begin_expr," LW Python pushes the "Expression" to the "Parent" stack. For example, if the following are true:
  • expression state at time 27 = "begin_expr"
  • the expression at time 27 = self."first_name" = first_name

then parent stack at time (27 + 1) = [ self."first_name" = first_name, parent stack at time 27 ]

Try stepping through the simulator to see LW Python push "Expression" into the "Parent" stack.

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments