mirror of
https://github.com/python/cpython.git
synced 2026-05-08 03:21:16 +00:00
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)`.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| _contextvars.c.h | ||
| _warnings.c.h | ||
| bltinmodule.c.h | ||
| context.c.h | ||
| import.c.h | ||
| instruction_sequence.c.h | ||
| instrumentation.c.h | ||
| marshal.c.h | ||
| Python-tokenize.c.h | ||
| sysmodule.c.h | ||
| traceback.c.h | ||