Skip to content

Avoid extra trailing blank lines in python -m inspect -d <target> #139292

@yihong0618

Description

@yihong0618

Bug report

Bug description:

in this there are two lines, I checked the code seems better use print() instead of print('\n')

➜  cpython git:(hy/extra_line_in_inspect) ./python.exe -m inspect -d inspect
Target: inspect
Origin: /Users/yihong/repos/cpython/Lib/inspect.py
Cached: /Users/yihong/repos/cpython/Lib/__pycache__/inspect.cpython-315.pyc
Loader: <_frozen_importlib_external.SourceFileLoader object at 0x105305130>


Image

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

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