Commit 25cb72c
committed
gh-148268: Avoid debug assertion in specialized list compares
Handle recursion errors raised by the debug-only cross-check in the specialized latin, compact-int, and float comparison helpers used by list sorting. When the verification path hits the C stack overflow guard, clear that exception so the optimized comparison remains side-effect free.\n\nThe change preserves the consistency assertion when the fallback comparison succeeds and adds a NEWS entry for the fix.1 parent 0f49232 commit 25cb72c
File tree
2 files changed
+25
-3
lines changed- Misc/NEWS.d/next/Core_and_Builtins
- Objects
2 files changed
+25
-3
lines changedLines 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 | |
|---|---|---|---|
| |||
2810 | 2810 | | |
2811 | 2811 | | |
2812 | 2812 | | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
2813 | 2833 | | |
2814 | 2834 | | |
2815 | 2835 | | |
| |||
2830 | 2850 | | |
2831 | 2851 | | |
2832 | 2852 | | |
2833 | | - | |
| 2853 | + | |
2834 | 2854 | | |
2835 | 2855 | | |
2836 | 2856 | | |
| |||
2855 | 2875 | | |
2856 | 2876 | | |
2857 | 2877 | | |
2858 | | - | |
| 2878 | + | |
2859 | 2879 | | |
2860 | 2880 | | |
2861 | 2881 | | |
| |||
2870 | 2890 | | |
2871 | 2891 | | |
2872 | 2892 | | |
2873 | | - | |
| 2893 | + | |
2874 | 2894 | | |
2875 | 2895 | | |
2876 | 2896 | | |
| |||
0 commit comments