Skip to content

Docs: replace all datetime imports with import datetime as dt - #145640

Merged
hugovk merged 7 commits into
python:mainfrom
hugovk:3.15-docs-import-datetime-as-dt
Mar 21, 2026
Merged

hugovk merged 7 commits into
python:mainfrom
hugovk:3.15-docs-import-datetime-as-dt

Conversation

@hugovk

@hugovk hugovk commented Mar 8, 2026 •

Copy link
Copy Markdown
Member

Follow on from #145315.

Whilst here, also updated some to use sentence case for headers:
https://devguide.python.org/documentation/style-guide/#capitalization


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

Comment thread Doc/faq/programming.rst Resolved
@picnixz

picnixz commented Mar 8, 2026

Copy link
Copy Markdown
Member

Can we have a better title for this PR?

@StanFromIreland

Copy link
Copy Markdown
Member

I suggest:

Docs: replace all datetime imports with import datetime as dt

@kumaraditya303
kumaraditya303 removed their request for review March 9, 2026 11:25
@hugovk hugovk changed the title Docs: import datetime as dt in other examples Mar 9, 2026

@StanFromIreland StanFromIreland left a comment

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.

LGTM (with a little fix)

Comment thread Doc/whatsnew/3.8.rst Resolved
@hugovk
hugovk merged commit 83360b5 into python:main Mar 21, 2026
46 checks passed
@hugovk
hugovk deleted the 3.15-docs-import-datetime-as-dt branch March 21, 2026 16:02
@miss-islington-app

Copy link
Copy Markdown

Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@bedevere-app

ghost commented Mar 21, 2026

Copy link
Copy Markdown

GH-146258 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 Mar 21, 2026
@bedevere-app

ghost commented Mar 21, 2026

Copy link
Copy Markdown

GH-146259 is a backport of this pull request to the 3.13 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants