Commit df5121b
committed
gh-61481: Document that memoryview, range, and slice cannot be subclassed
Among the built-in classes that can't be subclassed, only bool documents
it. memoryview, range, and slice behave the same but say nothing, so it
can only be found out by trying. Add the same note to those three.
The wording mirrors the existing bool entry, minus the "further" that
applies only to bool (which subclasses int).1 parent 4f3be1b commit df5121b
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
| 1295 | + | |
| 1296 | + | |
1295 | 1297 | | |
1296 | 1298 | | |
1297 | 1299 | | |
| |||
1749 | 1751 | | |
1750 | 1752 | | |
1751 | 1753 | | |
| 1754 | + | |
| 1755 | + | |
1752 | 1756 | | |
1753 | 1757 | | |
1754 | 1758 | | |
| |||
1920 | 1924 | | |
1921 | 1925 | | |
1922 | 1926 | | |
| 1927 | + | |
| 1928 | + | |
1923 | 1929 | | |
1924 | 1930 | | |
1925 | 1931 | | |
| |||
0 commit comments