Repository navigation
Commit 31a7552
Avoid a reference count round trip when converting int arguments to Py_ssize_t
Add _PyNumber_IndexAsSsize_t() and use it in Argument Clinic and in the
'n' format unit of PyArg_Parse. Also add a fast path for int to
PyNumber_AsSsize_t().
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>1 parent ff9803a commit 31a7552
51 files changed
Lines changed: 744 additions & 1945 deletions
File tree
- Include/internal
- Lib/test
- Modules
- _ctypes/clinic
- _decimal/clinic
- _io/clinic
- _sre/clinic
- _testinternalcapi/clinic
- _zstd/clinic
- clinic
- Objects
- clinic
- stringlib/clinic
- Python
- clinic
- Tools/clinic/libclinic
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
1666 | 1658 | | |
1667 | 1659 | | |
1668 | 1660 | | |
1669 | 1661 | | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
1681 | 1665 | | |
1682 | 1666 | | |
1683 | 1667 | | |
| |||
1688 | 1672 | | |
1689 | 1673 | | |
1690 | 1674 | | |
1691 | | - | |
1692 | | - | |
1693 | | - | |
1694 | | - | |
1695 | | - | |
1696 | | - | |
1697 | | - | |
1698 | | - | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
1707 | 1683 | | |
1708 | 1684 | | |
1709 | 1685 | | |
| |||
1714 | 1690 | | |
1715 | 1691 | | |
1716 | 1692 | | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
1728 | 1696 | | |
1729 | 1697 | | |
1730 | 1698 | | |
| |||
1743 | 1711 | | |
1744 | 1712 | | |
1745 | 1713 | | |
1746 | | - | |
| 1714 | + | |
1747 | 1715 | | |
1748 | 1716 | | |
1749 | 1717 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments