Skip to content

gh-160035: Simplify datetime awareness docs - #160086

Merged
StanFromIreland merged 2 commits into
python:mainfrom
Milan-CSE:gh-160035-simplify-tz-awareness-docs
Oct 22, 2026
Merged

StanFromIreland merged 2 commits into
python:mainfrom
Milan-CSE:gh-160035-simplify-tz-awareness-docs

Conversation

@Milan-CSE

Copy link
Copy Markdown
Contributor

Summary

Simplifies the documentation for determining whether datetime and time objects are aware or naive.

Both objects' utcoffset() methods already account for the presence of timezone information and whether the resulting UTC offset is None. The updated wording explains this more directly.

Issue

gh-160035

Verification

  • Doc/make.bat check — passed.
  • python -m test test_datetime — passed (1,098 tests run, 106 skipped).
  • Documentation parsing — passed without reported warnings or markup errors.

@python-cla-bot

python-cla-bot Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

Copilot AI balanced review requested due to automatic review settings October 21, 2026 18:20
@bedevere-app bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Oct 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Oct 21, 2026
@read-the-docs-community

read-the-docs-community Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35317441 | 📁 Comparing 1257cde against main (796b26b)

  🔍 Preview build  

41 files changed · + 1 added · ± 40 modified

+ Added

± Modified

Comment thread Doc/library/datetime.rst Outdated
@StanFromIreland
StanFromIreland enabled auto-merge (squash) October 22, 2026 06:48
@StanFromIreland StanFromIreland added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 22, 2026
@StanFromIreland
StanFromIreland merged commit c3bcc92 into python:main Oct 22, 2026
34 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Oct 22, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @Milan-CSE for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 22, 2026

Copy link
Copy Markdown

GH-160211 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 22, 2026
@bedevere-app

bedevere-app Bot commented Oct 22, 2026

Copy link
Copy Markdown

GH-160212 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 22, 2026
StanFromIreland added a commit that referenced this pull request Oct 22, 2026
(cherry picked from commit c3bcc92)

Co-authored-by: Nakum Milan <milannakum.ce22@sltiet.edu.in>
Co-authored-by: Stan Ulbrych <stan@python.org>
StanFromIreland added a commit that referenced this pull request Oct 22, 2026
(cherry picked from commit c3bcc92)

Co-authored-by: Nakum Milan <milannakum.ce22@sltiet.edu.in>
Co-authored-by: Stan Ulbrych <stan@python.org>
@StanFromIreland

Copy link
Copy Markdown
Member

Merged, thanks!

@Milan-CSE
Milan-CSE deleted the gh-160035-simplify-tz-awareness-docs branch October 22, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants