Skip to content

gh-162314: Clarify time function return units - #162332

Open
Sauvi72 wants to merge 1 commit into
python:mainfrom
Sauvi72:docs/gh-162314-time-seconds
Open

Sauvi72 wants to merge 1 commit into
python:mainfrom
Sauvi72:docs/gh-162314-time-seconds

Conversation

@Sauvi72

@Sauvi72 Sauvi72 commented Nov 20, 2026 •

Copy link
Copy Markdown

Replace "in fractional seconds" with "in seconds" in the descriptions of monotonic(), perf_counter(), process_time(), and thread_time(). This avoids suggesting that only the fractional part is returned; the signatures already specify float return values.

Fixes #162314.

Validation: applicable pre-commit hooks, including Sphinx lint, and git diff --check passed.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #36048506 | 📁 Comparing 27304e9 against main (e0d0f2e)

  🔍 Preview build  

1 file changed
± library/time.html

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.

Bad wording in the documentation of the time module

1 participant