Skip to content

Commit fff596f

Browse files
miss-islingtonpganssle
authored andcommitted
bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814) (gh-5929)
* Add What's New entry for addition of datetime.timezone to the C API Closes bpo-10381 * Add what's new entry for date and datetime optimizations Closes bpo-32403 (cherry picked from commit 5bd04f9) Co-authored-by: Paul Ganssle <[email protected]>
1 parent 4c842b0 commit fff596f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Doc/whatsnew/3.7.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,11 @@ Optimizations
878878
start-up time by up to 10%. (Contributed by Ivan Levkivskyi and INADA Naoki
879879
in :issue:`31333`)
880880

881+
* Significant speed improvements to alternate constructors for
882+
:class:`datetime.date` and :class:`datetime.datetime` by using fast-path
883+
constructors when not constructing subclasses. (Contributed by Paul Ganssle
884+
in :issue:`32403`)
885+
881886
Build and C API Changes
882887
=======================
883888

@@ -928,6 +933,11 @@ Build and C API Changes
928933
* Support for building ``--without-threads`` is removed.
929934
(Contributed by Antoine Pitrou in :issue:`31370`.).
930935

936+
* Added C API support for timezones with timezone constructors
937+
:c:func:`PyTimeZone_FromOffset` and :c:func:`PyTimeZone_FromOffsetAndName`,
938+
and access to the UTC singleton with :c:data:`PyDateTime_TimeZone_UTC`.
939+
Contributed by Paul Ganssle in :issue:`10381`.
940+
931941

932942
Other CPython Implementation Changes
933943
====================================

0 commit comments

Comments
 (0)