Commit b3e2c02
gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358)
Older stable ABI extensions are allowed to make immortal objects mortal.
Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).
(cherry picked from commit 956270d)
Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
1 parent 58f7763 commit b3e2c02
File tree
2 files changed
+12
-6
lines changed- Misc/NEWS.d/next/C API
- Objects
2 files changed
+12
-6
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 | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
| 261 | + | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| |||
691 | 692 | | |
692 | 693 | | |
693 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
694 | 700 | | |
695 | 701 | | |
696 | 702 | | |
697 | | - | |
698 | 703 | | |
699 | 704 | | |
700 | 705 | | |
| |||
710 | 715 | | |
711 | 716 | | |
712 | 717 | | |
713 | | - | |
714 | 718 | | |
715 | 719 | | |
716 | 720 | | |
717 | | - | |
718 | 721 | | |
719 | 722 | | |
720 | 723 | | |
| |||
1899 | 1902 | | |
1900 | 1903 | | |
1901 | 1904 | | |
1902 | | - | |
| 1905 | + | |
| 1906 | + | |
1903 | 1907 | | |
1904 | 1908 | | |
1905 | 1909 | | |
| |||
15015 | 15019 | | |
15016 | 15020 | | |
15017 | 15021 | | |
15018 | | - | |
| 15022 | + | |
15019 | 15023 | | |
15020 | 15024 | | |
15021 | 15025 | | |
| |||
0 commit comments