Commit 5c9ee49
authored
This is the culmination of PEP 684 (and of my 8-year long multi-core Python project)!
Each subinterpreter may now be created with its own GIL (via Py_NewInterpreterFromConfig()). If not so configured then the interpreter will share with the main interpreter--the status quo since subinterpreters were added decades ago. The main interpreter always has its own GIL and subinterpreters from Py_NewInterpreter() will always share with the main interpreter.
1 parent 942482c commit 5c9ee49
File tree
7 files changed
+24
-52
lines changed- Include/internal
- Misc/NEWS.d/next/Core and Builtins
- Python
7 files changed
+24
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
468 | | - | |
| 467 | + | |
469 | 468 | | |
470 | 469 | | |
471 | 470 | | |
472 | 471 | | |
473 | 472 | | |
474 | 473 | | |
475 | 474 | | |
476 | | - | |
477 | | - | |
| 475 | + | |
478 | 476 | | |
479 | 477 | | |
480 | 478 | | |
| |||
484 | 482 | | |
485 | 483 | | |
486 | 484 | | |
487 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
535 | 536 | | |
536 | 537 | | |
537 | 538 | | |
538 | 539 | | |
539 | 540 | | |
540 | 541 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | 542 | | |
553 | 543 | | |
554 | | - | |
555 | | - | |
| 544 | + | |
556 | 545 | | |
557 | 546 | | |
558 | 547 | | |
| |||
565 | 554 | | |
566 | 555 | | |
567 | 556 | | |
568 | | - | |
| 557 | + | |
| 558 | + | |
569 | 559 | | |
570 | 560 | | |
571 | 561 | | |
572 | 562 | | |
573 | 563 | | |
574 | 564 | | |
575 | 565 | | |
576 | | - | |
| 566 | + | |
577 | 567 | | |
578 | 568 | | |
579 | 569 | | |
580 | 570 | | |
581 | 571 | | |
582 | 572 | | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | 573 | | |
595 | 574 | | |
596 | 575 | | |
| |||
974 | 953 | | |
975 | 954 | | |
976 | 955 | | |
977 | | - | |
978 | | - | |
979 | 956 | | |
980 | | - | |
| 957 | + | |
981 | 958 | | |
982 | | - | |
983 | | - | |
984 | | - | |
| 959 | + | |
985 | 960 | | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
| 961 | + | |
990 | 962 | | |
991 | | - | |
992 | 963 | | |
993 | 964 | | |
994 | 965 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | 428 | | |
431 | 429 | | |
432 | 430 | | |
| |||
682 | 680 | | |
683 | 681 | | |
684 | 682 | | |
685 | | - | |
| 683 | + | |
686 | 684 | | |
687 | 685 | | |
688 | 686 | | |
| |||
0 commit comments