Commit 7503201
gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557)
Hold a strong reference to 'hook' while calling the default
unraisable took to log hook failure.
(cherry picked from commit 1d0baf1)
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 39a2bcf)
1 parent a4a33ff commit 7503201
File tree
3 files changed
+6
-4
lines changed- Lib/test
- Misc/NEWS.d/next/Library
- Python
3 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1495 | 1495 | | |
1496 | 1496 | | |
1497 | 1497 | | |
| 1498 | + | |
1498 | 1499 | | |
1499 | 1500 | | |
1500 | 1501 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
| 1596 | + | |
1596 | 1597 | | |
1597 | 1598 | | |
1598 | 1599 | | |
| |||
1637 | 1638 | | |
1638 | 1639 | | |
1639 | 1640 | | |
1640 | | - | |
1641 | 1641 | | |
1642 | 1642 | | |
1643 | 1643 | | |
| |||
1650 | 1650 | | |
1651 | 1651 | | |
1652 | 1652 | | |
1653 | | - | |
1654 | 1653 | | |
1655 | 1654 | | |
1656 | 1655 | | |
1657 | 1656 | | |
1658 | 1657 | | |
1659 | 1658 | | |
1660 | 1659 | | |
1661 | | - | |
1662 | 1660 | | |
1663 | 1661 | | |
1664 | 1662 | | |
1665 | 1663 | | |
1666 | 1664 | | |
1667 | | - | |
1668 | 1665 | | |
1669 | 1666 | | |
1670 | 1667 | | |
| |||
1694 | 1691 | | |
1695 | 1692 | | |
1696 | 1693 | | |
| 1694 | + | |
1697 | 1695 | | |
1698 | 1696 | | |
1699 | 1697 | | |
| |||
0 commit comments