bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-… · python/cpython@fff596f

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

====================================