Python object() function

Instance

Create an empty object:

x = object()

Run 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, it has all the default built-in properties and methods of all classes.

Syntax

object()

Parameter Value

No Parameters