THE WORLD'S LARGEST WEB DEVELOPER SITE

Python object() Function

❮ Built-in Functions


Example

Create an empty object:

x = object()
Run example »

Definition and Usage

The object() function returns an empty object.

You cannot add new properties or methods to this object.

This object is the base for all classes, it holds the built-in properties and methods which are default for all classes.


Syntax

object()

Parameter Values

No parameters


❮ Built-in Functions