PyDocs

Nav

Python Runtime Services

vars

builtins

function
  • vars()
  • vars(object, /)
vars([object]) -> dictionary

Without arguments, equivalent to locals().
With an argument, equivalent to object.__dict__.
Changed in 3.13
  • 3.13: The result of calling this function without an argument has been updated as described for the locals() builtin.
0 Examples
No examples for builtins/vars.
See Also
No see-alsos for builtins/vars
0 Notes
No notes for vars