Skip to content

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

Open
EoinTrial wants to merge 2 commits intopython:mainfrom
EoinTrial:fix/signal-pause-docs
Open

gh-100557: Clarify signal.pause() docs to explain it only wakes on handled signals#148723
EoinTrial wants to merge 2 commits intopython:mainfrom
EoinTrial:fix/signal-pause-docs

Conversation

@EoinTrial
Copy link
Copy Markdown

@EoinTrial EoinTrial commented Apr 18, 2026

The current docs for signal.pause() state only "Wait until a signal arrives." This is incomplete to the point of being wrong: pause(2) only returns control if a signal is delivered that has a handler installed. Signals that are being ignored do not interrupt pause().

This PR updates the Clinic docstring in Modules/signalmodule.c (and the generatedModules/clinic/signalmodule.c.h) to accurately describe this behaviour.

Note: the input= hash in the [clinic end generated code] comment will need to be updated by running make clinic before merging.


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

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