summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorPaul Ganssle <pganssle@users.noreply.github.com>2018-02-27 19:41:30 (GMT)
committerAlexander Belopolsky <abalkin@users.noreply.github.com>2018-02-27 19:41:30 (GMT)
commit5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe (patch)
tree9f82cd4f3093984d714002a9d7904083e61b828b /Doc/whatsnew
parent698dde16f60729d9e3f53c23a4ddb8e5ffe818bf (diff)
downloadcpython-5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe.zip
cpython-5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe.tar.gz
cpython-5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe.tar.bz2
bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-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
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.7.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index fa2d472..46f4f13 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -886,6 +886,11 @@ Optimizations
start-up time by up to 10%. (Contributed by Ivan Levkivskyi and INADA Naoki
in :issue:`31333`)
+* Significant speed improvements to alternate constructors for
+ :class:`datetime.date` and :class:`datetime.datetime` by using fast-path
+ constructors when not constructing subclasses. (Contributed by Paul Ganssle
+ in :issue:`32403`)
+
Build and C API Changes
=======================
@@ -936,6 +941,11 @@ Build and C API Changes
* Support for building ``--without-threads`` is removed.
(Contributed by Antoine Pitrou in :issue:`31370`.).
+* Added C API support for timezones with timezone constructors
+ :c:func:`PyTimeZone_FromOffset` and :c:func:`PyTimeZone_FromOffsetAndName`,
+ and access to the UTC singleton with :c:data:`PyDateTime_TimeZone_UTC`.
+ Contributed by Paul Ganssle in :issue:`10381`.
+
Other CPython Implementation Changes
====================================