Skip to content

Commit 79115de

Browse files
committed
gh-158252: Add strptime optimizations to What’s New
1 parent 96742aa commit 79115de

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎Doc/whatsnew/3.16.rst‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,16 @@ zlib
910910
Optimizations
911911
=============
912912

913+
datetime and time
914+
-----------------
915+
916+
* :meth:`datetime.datetime.strptime`, :meth:`datetime.date.strptime`,
917+
:meth:`datetime.time.strptime`, and :func:`time.strptime` are faster
918+
for common numeric formats such as ``%Y-%m-%d`` and
919+
``%Y-%m-%d %H:%M:%S``.
920+
(Contributed by Paul Ganssle in :gh:`158252`, based on work by
921+
StanFromIreland.)
922+
913923
re
914924
--
915925

0 commit comments

Comments
 (0)