豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

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

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

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.

@EoinTrial
Copy link
Copy Markdown
Author

@picnixz Thanks for reviewing! Closing the PR as per your reasoning.

@EoinTrial EoinTrial closed this Apr 21, 2026
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