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/

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

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Documentation of signal.pause is incorrect

1 participant