Python object() Function

Instance

Create an empty object:

x = object()

Running an Instance

Definition and Usage

The object() function returns an empty object.

You cannot add new properties or methods to this object.

This object is the basis of all classes, and it has all the default built-in attributes and methods of all classes.

Syntax

object()

Parameter Value

No Parameters