Commit eb31592
committed
[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.1 parent abdbf33 commit eb31592
File tree
3 files changed
+24
-0
lines changed- Lib/test
- Misc/NEWS.d/next/Library
- Modules
3 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6881 | 6881 | | |
6882 | 6882 | | |
6883 | 6883 | | |
| 6884 | + | |
| 6885 | + | |
| 6886 | + | |
| 6887 | + | |
| 6888 | + | |
| 6889 | + | |
| 6890 | + | |
| 6891 | + | |
| 6892 | + | |
| 6893 | + | |
| 6894 | + | |
| 6895 | + | |
| 6896 | + | |
| 6897 | + | |
| 6898 | + | |
| 6899 | + | |
| 6900 | + | |
6884 | 6901 | | |
6885 | 6902 | | |
6886 | 6903 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7293 | 7293 | | |
7294 | 7294 | | |
7295 | 7295 | | |
| 7296 | + | |
| 7297 | + | |
| 7298 | + | |
| 7299 | + | |
| 7300 | + | |
| 7301 | + | |
7296 | 7302 | | |
7297 | 7303 | | |
7298 | 7304 | | |
| |||
0 commit comments