Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug Description
, inpdb.print_stack_entry,line_prefix is used as a default argument:def print_stack_entry(self, frame_lineno, prompt_prefix=line_prefix):
This causes the value to be bound at definition time (when the module is imported). Any subsequent assignment topdb.line_prefix by the user is ignored by this function.
Fix
Change the default argument toNone and assign it inside the function body.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response