Skip to content

gh-100557: Clarify signal.pause() docs to explain it only wakes on handled signals#148760

Open
EoinTrial wants to merge 1 commit intopython:mainfrom
EoinTrial:fix/signal-pause-docs-v2
Open

gh-100557: Clarify signal.pause() docs to explain it only wakes on handled signals#148760
EoinTrial wants to merge 1 commit intopython:mainfrom
EoinTrial:fix/signal-pause-docs-v2

Conversation

@EoinTrial
Copy link
Copy Markdown

@EoinTrial EoinTrial commented Apr 19, 2026

The docs for signal.pause() say it sleeps "until a signal is received", which is ambiguous. Signals that are ignored or set to the default action do not wake the process, only signals with an installed handler do this.

This clarifies the content in Doc/library/signal.rst accordingly.

The C docstring in signalmodule.c is intentionally left unchanged as it is the short manpage description and the online docs are the appropriate place for this level of detail.

Fixes #100557


📚 Documentation preview 📚: https://cpython-previews--148760.org.readthedocs.build/

@@ -0,0 +1,4 @@
Clarify the documentation for :func:`signal.pause` to explain that it only
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can remove the NEWS entry I will add a skip news label

Copy link
Copy Markdown
Member

@picnixz picnixz left a comment

Choose a reason for hiding this comment

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

I do not think there is a need for a change actually. The docs are actually already clear as they mention that we wait until a handler is called.

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 skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Documentation of signal.pause is incorrect

2 participants