-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
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
bdb.Bdb.format_stack_entry: checks for obsolete __args__ #83830
Comments
It does:
However that appears to be wrong/unnecessary since the following likely, but
def dispatch_call(self, frame, arg):
- frame.f_locals['__args__'] = arg
+ # XXX 'arg' is no longer used
if self.botframe is None:
# First call of dispatch since reset()
self.botframe = frame Code ref: Lines 551 to 558 in 1ed6161
So it should either get removed, or likely be replaced with actually displaying For this the part could be factored out of Of course somebody might inject/set |
That seems to be a correct observation. @blueyed, do you want to submit a PR to gt rid of the redundant check? |
Sure: #18531 |
__args__
in bdb.Bdb.format_stack_entry #18531__args__
in bdb.Bdb.format_stack_entry (GH-18531) #18635__args__
in bdb.Bdb.format_stack_entry (GH-18531) #18636Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: