ID EN
Built-in Functions

vars

Python 3.11

Return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribute.

Syntax

PYTHON
vars()

See Also

__dict__ __dict__ __dict__ __dict__ types.MappingProxyType vars() locals() TypeError