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

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

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