Skip to content

^D may print D upon exit in python -m json #139541

@yihong0618

Description

@yihong0618

Bug report

Bug description:

./python.exe -m json
4
#ctrl+D

see below
Image

some dig(see below):

  • linux ok windows ok
  • ./python.exe -m ast ok
  • 444 ok
  • add some in the soure code(in fially block) print ok...
Image

444 ok

Image

Its only happen on macos with single char.....seems.

kind of like gh-138776 so cc @aisk ~

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions