diff options
author | Eugene Toder <eltoder@users.noreply.github.com> | 2024-01-30 15:19:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 15:19:46 (GMT) |
commit | 1f515e8a109204f7399d85b7fd806135166422d9 (patch) | |
tree | a8af50bda79583edcfc0b24306a8a71a49b5609a /Misc/NEWS.d | |
parent | 4287e8608bcabcc5bde851d838d4709db5d69089 (diff) | |
download | cpython-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.rst | 2 |
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`. |