On this page
  1. builtins.hash
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

builtins.hash

Prev: builtins.hasattr | Up: builtins | Next: builtins.help
Rel: builtins.abs, builtins.aiter, builtins.all, builtins.anext
Ref: docs.python.org — builtins.hash
Tags: #public #python3 #stdlib #builtins


Import

import builtins
from builtins import hash

Signature & Overview

builtins.hash(obj, /)

Return the integer hash value for the given object.

Usage

assert hash((1, "a")) == hash((1, "a"))

Gotchas

REPL Inspect

from builtins import hash
help(hash)

Linked from

Related notes