Repository navigation
Commit 8c7ac57
authored
Set elements are written in the order of their dumps. They were sorted
as (dump, element) pairs, so elements with the same dump were compared.
That failed for a set of several complex NaNs, which the compiler can
produce by constant folding, making the module impossible to marshal.
On this branch the failure was reported as MemoryError.
Sort (dump, index, element) tuples, in which the indexes are all
different. Elements with the same dump stay in the order of the set,
as float NaNs did before.
(cherry picked from commit 1967a87)
1 parent 9ad8605 commit 8c7ac57
3 files changed
Lines changed: 65 additions & 13 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
585 | 623 | | |
586 | 624 | | |
587 | 625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
650 | | - | |
651 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
652 | 656 | | |
653 | 657 | | |
654 | 658 | | |
| |||
672 | 676 | | |
673 | 677 | | |
674 | 678 | | |
675 | | - | |
676 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
677 | 688 | | |
678 | 689 | | |
679 | 690 | | |
680 | | - | |
| 691 | + | |
681 | 692 | | |
682 | 693 | | |
683 | 694 | | |
684 | | - | |
| 695 | + | |
685 | 696 | | |
686 | 697 | | |
687 | 698 | | |
688 | 699 | | |
689 | | - | |
| 700 | + | |
690 | 701 | | |
691 | 702 | | |
692 | | - | |
| 703 | + | |
693 | 704 | | |
694 | | - | |
| 705 | + | |
695 | 706 | | |
696 | 707 | | |
697 | 708 | | |
698 | | - | |
699 | | - | |
| 709 | + | |
| 710 | + | |
700 | 711 | | |
701 | 712 | | |
702 | | - | |
| 713 | + | |
703 | 714 | | |
704 | 715 | | |
705 | 716 | | |
| |||
0 commit comments