Commit 665b7df
authored
Improve
Improve `hash()` builtin docstring with caveats.
Mention its return type and that the value can be expected to change between
processes (hash randomization).
Why? The `hash` builtin gets reached for and used by a lot of people whether it
is the right tool or not. IDEs surface docstrings and people use pydoc and
`help(hash)`.hash() builtin docstring with caveats. (GH-125229)1 parent 618b726 commit 665b7df
2 files changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1840 | 1840 | | |
1841 | 1841 | | |
1842 | 1842 | | |
1843 | | - | |
| 1843 | + | |
1844 | 1844 | | |
1845 | | - | |
1846 | | - | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
1847 | 1849 | | |
1848 | 1850 | | |
1849 | 1851 | | |
1850 | 1852 | | |
1851 | | - | |
| 1853 | + | |
1852 | 1854 | | |
1853 | 1855 | | |
1854 | 1856 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments