]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 28 May 2020 16:41:41 +0000 (09:41 -0700)
committerGitHub <noreply@github.com>
Thu, 28 May 2020 16:41:41 +0000 (09:41 -0700)
commiteceee544de4b0f885729022c135c53291b6bbb23
treead8ba3b254b0d92eaac5f21b07c3843e90669c49
parenta5936ad6323b2cda712726a25d9301f766146cff
[3.9] bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time (GH-20493) (GH-20495)

Recent changes to _datetimemodule broke compilation on mingw; see the comments in this change for details.

FWIW, @corona10: this issue is why `PyType_FromModuleAndSpec` & friends take the `bases` argument at run time.
(cherry picked from commit 459acc551656785bc4a3363d65c7a60f822da8e3)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Misc/NEWS.d/next/Library/2020-05-28-17-32-29.bpo-40777.1kJU6N.rst [new file with mode: 0644]
Modules/_datetimemodule.c