We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In function make_frame, I dont't understand these lines of code's effect.
make_frame
def make_frame(self, code, callargs={}, f_globals=None, f_locals=None): log.info("make_frame: code=%r, callargs=%s" % (code, repper(callargs))) # if f_globals is not None: # f_globals = f_globals # if f_locals is None: # f_locals = f_globals # Can the above lines be modified like this if f_globals is not None and f_locals is None: f_locals = f_globals elif self.frames: f_globals = self.frame.f_globals f_locals = {} else: f_globals = f_locals = { '__builtins__': __builtins__, '__name__': '__main__', '__doc__': None, '__package__': None, } f_locals.update(callargs) frame = Frame(code, f_globals, f_locals, self.frame) return frame
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In function
make_frame
, I dont't understand these lines of code's effect.The text was updated successfully, but these errors were encountered: