Skip to content

python -m base64 do not handle stdin correct like ast.py or json.tool #138775

@yihong0618

Description

@yihong0618

Bug report

Bug description:

➜  cpython git:(hy/handle_base64_sysin) ./python.exe -m base64
hello world
^D # type ctrl+D
# nothing happen need to ctrl+d three times

for -m ast or -m json it handle stdin input with ctrl+d right

➜  cpython git:(hy/handle_base64_sysin) ./python.exe -m json  
1234 
1234 # ctrl +d

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-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions