PyDocs

Nav

Python Runtime Services

setattr

builtins

function
  • setattr(object, name, value, /)
Sets the named attribute on the given object to the specified value.

setattr(x, 'y', v) is equivalent to ``x.y = v``
0 Examples
No examples for builtins/setattr.
See Also
No see-alsos for builtins/setattr
0 Notes
No notes for setattr