Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Commitc6dbfbb
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 parent38c4028 commitc6dbfbb
File tree
4 files changed
+69
-10
lines changed- Include/internal
- Lib/test
- Misc/NEWS.d/next/Core and Builtins
- Objects
4 files changed
+69
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
2345 | 2346 | | |
2346 | 2347 | | |
2347 | 2348 | | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
2348 | 2384 | | |
2349 | 2385 | | |
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 | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
317 | 327 | | |
318 | 328 | | |
319 | 329 | | |
| |||
5668 | 5678 | | |
5669 | 5679 | | |
5670 | 5680 | | |
5671 | | - | |
5672 | 5681 | | |
5673 | 5682 | | |
5674 | 5683 | | |
| |||
7671 | 7680 | | |
7672 | 7681 | | |
7673 | 7682 | | |
7674 | | - | |
| 7683 | + | |
7675 | 7684 | | |
7676 | 7685 | | |
7677 | 7686 | | |
| |||
7836 | 7845 | | |
7837 | 7846 | | |
7838 | 7847 | | |
7839 | | - | |
| 7848 | + | |
7840 | 7849 | | |
7841 | 7850 | | |
7842 | | - | |
| 7851 | + | |
7843 | 7852 | | |
7844 | 7853 | | |
7845 | 7854 | | |
| |||
8158 | 8167 | | |
8159 | 8168 | | |
8160 | 8169 | | |
8161 | | - | |
| 8170 | + | |
8162 | 8171 | | |
8163 | 8172 | | |
8164 | 8173 | | |
| |||
8197 | 8206 | | |
8198 | 8207 | | |
8199 | 8208 | | |
8200 | | - | |
| 8209 | + | |
8201 | 8210 | | |
8202 | 8211 | | |
8203 | 8212 | | |
| |||
8254 | 8263 | | |
8255 | 8264 | | |
8256 | 8265 | | |
8257 | | - | |
| 8266 | + | |
8258 | 8267 | | |
8259 | 8268 | | |
8260 | 8269 | | |
| |||
8290 | 8299 | | |
8291 | 8300 | | |
8292 | 8301 | | |
| 8302 | + | |
| 8303 | + | |
| 8304 | + | |
| 8305 | + | |
| 8306 | + | |
8293 | 8307 | | |
8294 | 8308 | | |
8295 | | - | |
| 8309 | + | |
8296 | 8310 | | |
8297 | 8311 | | |
8298 | 8312 | | |
8299 | 8313 | | |
8300 | 8314 | | |
| 8315 | + | |
8301 | 8316 | | |
8302 | 8317 | | |
8303 | 8318 | | |
| |||
10885 | 10900 | | |
10886 | 10901 | | |
10887 | 10902 | | |
10888 | | - | |
| 10903 | + | |
10889 | 10904 | | |
10890 | 10905 | | |
10891 | 10906 | | |
10892 | 10907 | | |
10893 | 10908 | | |
10894 | 10909 | | |
| 10910 | + | |
| 10911 | + | |
| 10912 | + | |
| 10913 | + | |
| 10914 | + | |
10895 | 10915 | | |
10896 | 10916 | | |
10897 | 10917 | | |
10898 | | - | |
| 10918 | + | |
10899 | 10919 | | |
10900 | 10920 | | |
10901 | 10921 | | |
| |||
0 commit comments
Comments
(0)