Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.1k
Commit0ec761a
authored
When builtin static types are initialized for a subinterpreter, various "tp" slots have already been inherited (for the main interpreter). This was interfering with the logic in add_operators() (in Objects/typeobject.c), causing a wrapper to get created when it shouldn't. This change fixes that by preserving the original data from the static type struct and checking that.(cherry picked from commit5250a03, AKAgh-121602)Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
1 parent5492f84 commit0ec761a
File tree
4 files changed
+74
-9
lines changed- Lib/test
- Misc/NEWS.d/next/Core and Builtins
- Objects
- Tools/c-analyzer/cpython
4 files changed
+74
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
2252 | 2253 | | |
2253 | 2254 | | |
2254 | 2255 | | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
2255 | 2290 | | |
2256 | 2291 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
119 | 131 | | |
120 | 132 | | |
121 | 133 | | |
| |||
6982 | 6994 | | |
6983 | 6995 | | |
6984 | 6996 | | |
6985 | | - | |
| 6997 | + | |
6986 | 6998 | | |
6987 | 6999 | | |
6988 | 7000 | | |
| |||
7147 | 7159 | | |
7148 | 7160 | | |
7149 | 7161 | | |
7150 | | - | |
| 7162 | + | |
7151 | 7163 | | |
7152 | 7164 | | |
7153 | | - | |
| 7165 | + | |
7154 | 7166 | | |
7155 | 7167 | | |
7156 | 7168 | | |
| |||
7462 | 7474 | | |
7463 | 7475 | | |
7464 | 7476 | | |
7465 | | - | |
| 7477 | + | |
7466 | 7478 | | |
7467 | 7479 | | |
7468 | 7480 | | |
| |||
7499 | 7511 | | |
7500 | 7512 | | |
7501 | 7513 | | |
7502 | | - | |
| 7514 | + | |
7503 | 7515 | | |
7504 | 7516 | | |
7505 | 7517 | | |
| |||
7551 | 7563 | | |
7552 | 7564 | | |
7553 | 7565 | | |
7554 | | - | |
| 7566 | + | |
7555 | 7567 | | |
7556 | 7568 | | |
7557 | 7569 | | |
| |||
7581 | 7593 | | |
7582 | 7594 | | |
7583 | 7595 | | |
7584 | | - | |
| 7596 | + | |
| 7597 | + | |
| 7598 | + | |
| 7599 | + | |
| 7600 | + | |
| 7601 | + | |
7585 | 7602 | | |
7586 | 7603 | | |
7587 | 7604 | | |
| 7605 | + | |
7588 | 7606 | | |
7589 | 7607 | | |
7590 | 7608 | | |
| |||
10108 | 10126 | | |
10109 | 10127 | | |
10110 | 10128 | | |
10111 | | - | |
| 10129 | + | |
10112 | 10130 | | |
10113 | 10131 | | |
10114 | 10132 | | |
10115 | 10133 | | |
10116 | 10134 | | |
10117 | 10135 | | |
| 10136 | + | |
| 10137 | + | |
| 10138 | + | |
| 10139 | + | |
| 10140 | + | |
10118 | 10141 | | |
10119 | 10142 | | |
10120 | 10143 | | |
10121 | | - | |
| 10144 | + | |
10122 | 10145 | | |
10123 | 10146 | | |
10124 | 10147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
308 | 313 | | |
309 | 314 | | |
310 | 315 | | |
| |||
0 commit comments
Comments
(0)