Commit 24b7ac4
gh-85943: Fix BytesWarning in the struct format cache under -bb
Normalize bytes format strings to str before using them as the cache key,
so that equal str and bytes formats no longer collide and get compared.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent dd2faeb commit 24b7ac4
3 files changed
Lines changed: 36 additions & 4 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
185 | 195 | | |
186 | 196 | | |
187 | 197 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2641 | 2641 | | |
2642 | 2642 | | |
2643 | 2643 | | |
2644 | | - | |
| 2644 | + | |
| 2645 | + | |
2645 | 2646 | | |
2646 | 2647 | | |
2647 | 2648 | | |
2648 | 2649 | | |
2649 | 2650 | | |
2650 | 2651 | | |
2651 | 2652 | | |
2652 | | - | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
2653 | 2668 | | |
2654 | 2669 | | |
2655 | 2670 | | |
| 2671 | + | |
2656 | 2672 | | |
2657 | 2673 | | |
2658 | 2674 | | |
2659 | 2675 | | |
2660 | | - | |
| 2676 | + | |
2661 | 2677 | | |
2662 | 2678 | | |
2663 | 2679 | | |
2664 | 2680 | | |
2665 | | - | |
| 2681 | + | |
2666 | 2682 | | |
| 2683 | + | |
2667 | 2684 | | |
2668 | 2685 | | |
2669 | 2686 | | |
| 2687 | + | |
2670 | 2688 | | |
2671 | 2689 | | |
2672 | 2690 | | |
| |||
0 commit comments