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

hash

Prev: hasattr | Up: __builtins__ | Next: help
Rel: callable, delattr, dir, getattr, hasattr
Ref: docs.python.org — hash
Tags: #public #python3 #builtins


Import & Availability

# Built-in (available globally without import)
from builtins import hash

Overview & Signature

hash(obj, /)

Return the integer hash value for the given object.

Usage

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

Gotchas

REPL Inspect

help(hash)

Linked from

Related notes