summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorEugene Toder <eltoder@users.noreply.github.com>2024-01-30 15:19:46 (GMT)
committerGitHub <noreply@github.com>2024-01-30 15:19:46 (GMT)
commit1f515e8a109204f7399d85b7fd806135166422d9 (patch)
treea8af50bda79583edcfc0b24306a8a71a49b5609a /Misc/NEWS.d
parent4287e8608bcabcc5bde851d838d4709db5d69089 (diff)
downloadcpython-1f515e8a109204f7399d85b7fd806135166422d9.zip
cpython-1f515e8a109204f7399d85b7fd806135166422d9.tar.gz
cpython-1f515e8a109204f7399d85b7fd806135166422d9.tar.bz2
gh-112919: Speed-up datetime, date and time.replace() (GH-112921)
Use argument clinic and call new_* functions directly. This speeds up these functions 6x to 7.5x when calling with keyword arguments.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2023-12-09-23-31-17.gh-issue-112919.S5k9QN.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-12-09-23-31-17.gh-issue-112919.S5k9QN.rst b/Misc/NEWS.d/next/Library/2023-12-09-23-31-17.gh-issue-112919.S5k9QN.rst
new file mode 100644
index 0000000..3e99d48
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-12-09-23-31-17.gh-issue-112919.S5k9QN.rst
@@ -0,0 +1,2 @@
+Speed-up :func:`datetime.datetime.replace`, :func:`datetime.date.replace` and
+:func:`datetime.time.replace`.