Skip to content

Errors are printed to stdout in pdb module #139944

@frostming

Description

@frostming

Bug report

Bug description:

As title, most errors in pdb.py are printed to stdout instead of stderr, like

cpython/Lib/pdb.py

Lines 188 to 193 in 8288f36

if not os.path.exists(self._target):
print(f'Error: {target} does not exist')
sys.exit(1)
if os.path.isdir(self._target):
print(f'Error: {target} is a directory')
sys.exit(1)

This is not following the conventions.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions