Commit cdb21ba
authored
It doesn't make sense to use multi-phase init for these modules. Using a per-interpreter "m_copy" (instead of PyModuleDef.m_base.m_copy) makes this work okay. (This came up while working on gh-101660.)
Note that we might instead end up disallowing re-load for sys/builtins since they are so special.
#102660
1 parent 80abd62 commit cdb21ba
File tree
5 files changed
+44
-4
lines changed- Include/internal
- Python
5 files changed
+44
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3098 | 3098 | | |
3099 | 3099 | | |
3100 | 3100 | | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
3101 | 3104 | | |
3102 | 3105 | | |
3103 | 3106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
981 | 991 | | |
982 | 992 | | |
983 | 993 | | |
| |||
1001 | 1011 | | |
1002 | 1012 | | |
1003 | 1013 | | |
1004 | | - | |
| 1014 | + | |
| 1015 | + | |
1005 | 1016 | | |
1006 | 1017 | | |
1007 | 1018 | | |
| |||
1055 | 1066 | | |
1056 | 1067 | | |
1057 | 1068 | | |
| 1069 | + | |
1058 | 1070 | | |
1059 | | - | |
| 1071 | + | |
1060 | 1072 | | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1061 | 1087 | | |
1062 | | - | |
| 1088 | + | |
1063 | 1089 | | |
| 1090 | + | |
1064 | 1091 | | |
1065 | 1092 | | |
1066 | 1093 | | |
1067 | 1094 | | |
1068 | 1095 | | |
1069 | | - | |
| 1096 | + | |
1070 | 1097 | | |
1071 | 1098 | | |
1072 | 1099 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
| 808 | + | |
808 | 809 | | |
809 | 810 | | |
810 | 811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3425 | 3425 | | |
3426 | 3426 | | |
3427 | 3427 | | |
| 3428 | + | |
| 3429 | + | |
| 3430 | + | |
3428 | 3431 | | |
3429 | 3432 | | |
3430 | 3433 | | |
3431 | 3434 | | |
3432 | 3435 | | |
3433 | 3436 | | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
3434 | 3442 | | |
3435 | 3443 | | |
3436 | 3444 | | |
| |||
0 commit comments