Skip to content

Conversation

yihong0618
Copy link
Contributor

@yihong0618 yihong0618 commented Aug 21, 2025

This patch make python -m json.tool or python -m json not hang if nothing provide

and print help message for this.

easy to reproduce

this hang

python -m json.tool

this work

echo '' | python -m json.tool

these also work

python -m json.tool abc
python -m json ttt.json

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Aug 21, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@yihong0618 yihong0618 changed the title gh-138019: make python -m json with nothing not hang gh-138019: make python -m json.tool with nothing not hang Aug 21, 2025
@yihong0618 yihong0618 closed this Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant