Skip to content

pdb l and ll commands print raw ansi codes for every new line #153902

Description

@saucoide

Bug report

Bug description:

l and ll in pdb after 09968dd results in output with ^J trailing everywhere

➜ ./python.exe debug.py
1
> /Users/sauco.navarro/projects/nonwork/cpython/debug.py(5)main()
-> breakpoint()
(Pdb) l
  1     from _pyrepl import utils^J
  2     ^J
  3     ^J
  4     def main():^J
  5  ->     breakpoint()^J
  6         for i in range(10):^J
  7             print(i)^J
  8     ^J
  9     main()^J
[EOF]
(Pdb) 

CPython versions tested on:

3.15

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions