FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Docs: replace all `datetime` imports with `import datetime as dt` by hugovk · Pull Request #145640 · python/cpython · GitHub

/ cpython Public

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

Docs: replace all datetime imports with import datetime as dt#145640
hugovk merged 7 commits into
python:mainfrom
hugovk:3.15-docs-import-datetime-as-dt

Conversation

hugovk commented Mar 8, 2026
edited by github-actions Bot
Loading

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

picnixz commented Mar 8, 2026

Copy link
Copy Markdown
Member

Can we have a better title for this PR?

Copy link
Copy Markdown
Member

I suggest:

Docs: replace all datetime imports with import datetime as dt

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

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM (with a little fix)

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

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 21, 2026
…thonGH-145640)

(cherry picked from commit 83360b5)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 21, 2026
…thonGH-145640)

(cherry picked from commit 83360b5)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

bedevere-app Bot commented Mar 21, 2026

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Mar 21, 2026

bedevere-app Bot commented Mar 21, 2026

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Mar 21, 2026
hugovk added a commit that referenced this pull request Mar 21, 2026
…dt` (GH-145640) (#146258)

Docs: replace all `datetime` imports with `import datetime as dt` (GH-145640)
(cherry picked from commit 83360b5)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
hugovk added a commit that referenced this pull request Mar 21, 2026
…dt` (GH-145640) (#146259)

Docs: replace all `datetime` imports with `import datetime as dt` (GH-145640)
(cherry picked from commit 83360b5)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull request Mar 22, 2026
* upstream/main: (1475 commits)
  Docs: replace all `datetime` imports with `import datetime as dt` (python#145640)
  pythongh-146153: Use `frozendict` in pure python fallback for `curses.has_key` (python#146154)
  pythongh-138234: clarify returncode behavior for subprocesses created with `shell=True` (python#138536)
  pythongh-140947: fix contextvars handling for server tasks in asyncio  (python#141158)
  pythonGH-100108: Add async generators best practices section (python#141885)
  pythonGH-145667: Merge `GET_ITER` and `GET_YIELD_FROM_ITER` (pythonGH-146120)
  pythongh-146228: Better fork support in cached FastPath (python#146231)
  pythongh-146227: Fix wrong type in _Py_atomic_load_uint16 in pyatomic_std.h (pythongh-146229)
  pythongh-145980: Fix copy/paste mistake in binascii.c (python#146230)
  pythongh-146092: Raise MemoryError on allocation failure in _zoneinfo (python#146165)
  pythongh-91279: Note `SOURCE_DATE_EPOCH` support in `ZipFile.writestr()` doc (python#139396)
  pythongh-146196: Fix Undefined Behavior in _PyUnicodeWriter_WriteASCIIString() (python#146201)
  pythongh-143930: Reject leading dashes in webbrowser URLs
  pythongh-145916: Soft-deprecate ctypes.util.find_library (pythonGH-145919)
  pythongh-146205: Check the errno with != 0 in close impls in select module (python#146206)
  pythongh-146171: Fix nested AttributeError suggestions (python#146188)
  pythongh-146099: Optimize _GUARD_CODE_VERSION+IP via function version symbols (pythonGH-146101)
  pythongh-145980: Add support for alternative alphabets in the binascii module (pythonGH-145981)
  pythongh-145754: Update signature retrieval in unittest.mock to use forwardref annotation format (python#145756)
  pythongh-145177: Add emscripten run --test, uses test args from config.toml (python#146160)
  ...
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL