You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Frame transaction is to ensure the mutable data got revert back during reloading frame or dropping it. This usefull when you have a function that mutate a list or dictionary and need to reload for some changes.
In this example, if you reload after appending item to the list, the value stil exist on the outer frame.
One approach that come to my mind is by dumping every time we enter a stack like using pickle. Then if we reload that frame, we can just reload the state of that frame. But this approach have some problem on circular variable.
Frame transaction is to ensure the mutable data got revert back during reloading frame or dropping it. This usefull when you have a function that mutate a list or dictionary and need to reload for some changes.
In this example, if you reload after appending item to the list, the value stil exist on the outer frame.
One approach that come to my mind is by dumping every time we enter a stack like using pickle. Then if we reload that frame, we can just reload the state of that frame. But this approach have some problem on circular variable.
The text was updated successfully, but these errors were encountered: