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

object

Prev: next | Up: __builtins__ | Next: oct
Rel: bool, int, float, complex, str, Python Object, MRO & Initialization Dunder Flow, Object-Oriented Programming (OOP)
Ref: docs.python.org — object
Tags: #public #python3 #builtins


Import & Availability

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

Overview & Signature

object()

The base class of the class hierarchy.

Usage

MISSING = object()   # unique sentinel that can never collide with None or False
assert MISSING is not object()

Gotchas

REPL Inspect

help(object)

Linked from

Related notes