Python object() Function

❮ Built-in Functions


Example

Create an empty object:

x = object()
Try it Yourself »

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

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.