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
Considering the call site in Function.__call__vm.make_frame(...) seems to reset the local scope for the frame to the globals. Wouldn't this cause problems when functions modify their local scope? Is this an optimization or a bug? (I'd assume the later one as the logic in the main byterun repo changed here)
As i am following the (rewarding) book i have come across a part in the Python Interpreter chapter for which i am having trouble following the logic. Specifically it is about
make_frame()
in theVirtualmachine
class in this line.Considering the call site in
Function.__call__
vm.make_frame(...)
seems to reset the local scope for the frame to the globals. Wouldn't this cause problems when functions modify their local scope? Is this an optimization or a bug? (I'd assume the later one as the logic in the main byterun repo changed here)Pinging the authors @akaptur @nedbat , if you guys find the time, a short clarification would be appreciated.
The text was updated successfully, but these errors were encountered: