]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-120782: Update internal type cache when reloading datetime (GH-120829)...
authorneonene <53406459+neonene@users.noreply.github.com>
Wed, 3 Jul 2024 08:22:51 +0000 (17:22 +0900)
committerGitHub <noreply@github.com>
Wed, 3 Jul 2024 08:22:51 +0000 (13:52 +0530)
commit2c3aa527fd37233527f1895bcb6eddbb7c1bab08
tree48544f42e0e65601f7d358af5a5f7eb15464e3db
parent85971492b7afb0e29a1104dbf8adebe8d0336cf5
[3.13] gh-120782: Update internal type cache when reloading datetime (GH-120829) (#120855)

* [3.13] gh-120782: Update internal type cache when reloading datetime

When reloading _datetime module, the single-phase version did not invoke the PyInit__datetime function, whereas the current multi-phase version updates the static types through the module init. The outdated static type cache in the interpreter state needs to be invalidated at the end of reloading the multi-phase module.
Lib/test/datetimetester.py
Misc/NEWS.d/next/Library/2024-06-21-12-00-16.gh-issue-120782.LOE8tj.rst [new file with mode: 0644]
Modules/_datetimemodule.c