Built-in Functions and Types
object()
Create a fresh instance of the fundamental base class. A plain object supports identity-based equality and hashing but has no per-instance dictionary for arbitrary attributes. It is often used as a unique sentinel when None is a legitimate value. User-defined subclasses can supply their own attributes and behavior. The constructor accepts no arguments.
Formal Syntax & Structure
python syntaxpython
object()Return Value
object
New plain object; useful as an identity sentinel.
Working Example
Example Snippetpython
missing = object()settings = {"limit": None}print(settings.get("limit", missing) is missing)print(settings.get("timeout", missing) is missing)