Commit cb075b6
pythongh-74690: Optimise
isinstance() and issubclass() calls against runtime-checkable protocols by avoiding costly super() calls (python#112708)1 parent e8ff40d commit cb075b6
File tree
2 files changed
+16
-3
lines changed- Lib
- Misc/NEWS.d/next/Library
2 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1782 | 1782 | | |
1783 | 1783 | | |
1784 | 1784 | | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
1785 | 1793 | | |
1786 | 1794 | | |
1787 | 1795 | | |
| |||
1841 | 1849 | | |
1842 | 1850 | | |
1843 | 1851 | | |
1844 | | - | |
| 1852 | + | |
1845 | 1853 | | |
1846 | 1854 | | |
1847 | 1855 | | |
| |||
1850 | 1858 | | |
1851 | 1859 | | |
1852 | 1860 | | |
1853 | | - | |
| 1861 | + | |
1854 | 1862 | | |
1855 | 1863 | | |
1856 | 1864 | | |
| |||
1859 | 1867 | | |
1860 | 1868 | | |
1861 | 1869 | | |
1862 | | - | |
| 1870 | + | |
1863 | 1871 | | |
1864 | 1872 | | |
1865 | 1873 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments