Skip to content

Commit 5bd04f9

Browse files
pganssleabalkin
authored andcommittedFeb 27, 2018
bpo-10381, bpo-32403: What's new entries for changes to datetime (pythongh-5814)
* 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
1 parent 698dde1 commit 5bd04f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎Doc/whatsnew/3.7.rst

+10
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,11 @@ Optimizations
886886
start-up time by up to 10%. (Contributed by Ivan Levkivskyi and INADA Naoki
887887
in :issue:`31333`)
888888

889+
* Significant speed improvements to alternate constructors for
890+
:class:`datetime.date` and :class:`datetime.datetime` by using fast-path
891+
constructors when not constructing subclasses. (Contributed by Paul Ganssle
892+
in :issue:`32403`)
893+
889894
Build and C API Changes
890895
=======================
891896

@@ -936,6 +941,11 @@ Build and C API Changes
936941
* Support for building ``--without-threads`` is removed.
937942
(Contributed by Antoine Pitrou in :issue:`31370`.).
938943

944+
* Added C API support for timezones with timezone constructors
945+
:c:func:`PyTimeZone_FromOffset` and :c:func:`PyTimeZone_FromOffsetAndName`,
946+
and access to the UTC singleton with :c:data:`PyDateTime_TimeZone_UTC`.
947+
Contributed by Paul Ganssle in :issue:`10381`.
948+
939949

940950
Other CPython Implementation Changes
941951
====================================

0 commit comments

Comments
 (0)
Please sign in to comment.