Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-141781: Fix pdb line prefix binding#141779

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
9ee94a2
Fix pdb.line_prefix binding in print_stack_entry
pareshjoshijNov 20, 2025
462f9af
Fix indentation in print_stack_entry method
pareshjoshijNov 20, 2025
62564e7
Fix indentation in print_stack_entry method
pareshjoshijNov 20, 2025
d0efb0b
Merge branch 'main' into fix-pdb-line-prefix-binding
pareshjoshijNov 20, 2025
78500dd
Merge branch 'main' into fix-pdb-line-prefix-binding
pareshjoshijNov 22, 2025
f7b6036
Add regression test for gh-141781
pareshjoshijNov 24, 2025
655b3aa
📜🤖 Added by blurb_it.
blurb-it[bot]Nov 24, 2025
83c75b9
Fix formatting in test_pdb.py
pareshjoshijNov 24, 2025
24265c2
Fix regression test spacing and add gh-141781 test
pareshjoshijNov 24, 2025
868c9fd
Update test_pdb.py
pareshjoshijNov 24, 2025
4aeba2a
Refactor test_find_function_found_with_encoding_cookie
pareshjoshijNov 24, 2025
bc231a3
Fix indentation in test_find_function_found_with_encoding_cookie
pareshjoshijNov 24, 2025
b166743
Add Paresh Joshi to ACKS list
pareshjoshijNov 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
Fix pdb.line_prefix binding in print_stack_entry
  • Loading branch information
@pareshjoshij
pareshjoshij authoredNov 20, 2025
commit9ee94a2e19ac0bd1213252e962c67479f0af6a23
6 changes: 4 additions & 2 deletionsLib/pdb.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -654,7 +654,7 @@ def _show_display(self):

def _get_tb_and_exceptions(self, tb_or_exc):
"""
Given atracecack or an exception, return a tuple of chained exceptions
Given atraceback or an exception, return a tuple of chained exceptions
and current traceback to inspect.

This will deal with selecting the right ``__cause__`` or ``__context__``
Expand DownExpand Up@@ -2429,7 +2429,9 @@ def print_stack_trace(self, count=None):
except KeyboardInterrupt:
pass

def print_stack_entry(self, frame_lineno, prompt_prefix=line_prefix):
def print_stack_entry(self, frame_lineno, prompt_prefix=None):
if prompt_prefix is None:
prompt_prefix = line_prefix
frame, lineno = frame_lineno
if frame is self.curframe:
prefix = '> '
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp