vars(object)

Returns test


objectoptional

REMARKS
* No prefix required - Core
* Return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribut
* Objects such as modules and instances have an updateable __dict__ attribute; however, other objects may have write restrictions on their __dict__ attributes (for example, classes use a types.MappingProxyType to prevent direct dictionary updates).
* Without an argument, vars() acts like locals(). Note, the locals dictionary is only useful for reads since updates to the locals dictionary are ignored.
* A TypeError exception is raised if an object is specified but it doesn't have a __dict__ attribute (for example, if its class defines the __slots__ attribute).

?? 

© 2025 Better Solutions Limited. All Rights Reserved. © 2025 Better Solutions Limited Top