]> granicus.if.org Git - python/commit
bpo-32403: Faster date and datetime constructors (#4993)
authorPaul Ganssle <pganssle@users.noreply.github.com>
Tue, 16 Jan 2018 18:06:31 +0000 (13:06 -0500)
committerAlexander Belopolsky <abalkin@users.noreply.github.com>
Tue, 16 Jan 2018 18:06:31 +0000 (13:06 -0500)
commit9f1b7b93f5f0ef589e7b272e127cacf4ce5d23f1
tree60cf60454cad0f99056713510c1c91744d7e7ff8
parent6b5a27975a415108a5eac12ee302bf2b3233f4d4
bpo-32403: Faster date and datetime constructors (#4993)

* Add tests for date subclass alternate constructors

* Switch over alternate date constructors to fast path

* Switch datetime constructors to fastpath, fix bpo-32404

* Add fast path for datetime in date subclass constructor

* Set fold in constructor in datetime.combine

* Add news entries.
Lib/test/datetimetester.py
Misc/NEWS.d/next/Library/2017-12-23-14-51-46.bpo-32403.CVFapH.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2017-12-23-14-54-05.bpo-32404.yJqtlJ.rst [new file with mode: 0644]
Modules/_datetimemodule.c