Skip to content

document how sys.exit treats booleans#153715

Closed
dotlambda wants to merge 1 commit into
python:mainfrom
dotlambda:patch-1
Closed

document how sys.exit treats booleans#153715
dotlambda wants to merge 1 commit into
python:mainfrom
dotlambda:patch-1

Conversation

@dotlambda

Copy link
Copy Markdown

No description provided.

@python-cla-bot

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jul 14, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jul 14, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33588111 | 📁 Comparing c049370 against main (d807210)

  🔍 Preview build  

1 file changed
± library/sys.html

@Aniketsy Aniketsy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! looks fine 👍

just a suggestion as i felt odd while reading

can we write something after this

If it is an integer, zero
is considered "successful termination" and any nonzero value is considered
"abnormal termination" by shells and the like.

(Since booleans are a subclass of integers, False is equivalent to 0 and True to 1.)

happy to know your thoughts on this :)

@picnixz

picnixz commented Jul 14, 2026

Copy link
Copy Markdown
Member

I do not think it is necessary. Booleans are integers and thus the docs already cover this

@picnixz picnixz added the pending The issue will be closed if no feedback is provided label Jul 14, 2026
@dotlambda

Copy link
Copy Markdown
Author

booleans are a subclass of integers

Tbh I wasn't aware of this.
So I agree that it is documented already.

@picnixz picnixz closed this Jul 14, 2026
@dotlambda dotlambda deleted the patch-1 branch July 14, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir pending The issue will be closed if no feedback is provided skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants