]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-120782: Update internal type cache when reloading datetime
authorneonene <53406459+neonene@users.noreply.github.com>
Fri, 21 Jun 2024 19:09:24 +0000 (04:09 +0900)
committerneonene <53406459+neonene@users.noreply.github.com>
Fri, 21 Jun 2024 19:09:24 +0000 (04:09 +0900)
commiteb31592efd475bc5fa5149483618f8c26cc96c5c
tree3af54de528bc88923ef9d036020b4d4dc73f6fd9
parentabdbf337d4641cf27d39fae206c2a08d27f6fcd9
[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