33 for name
in attributes:
34 setattr(self, name, attributes[name])
46 def copy(self, **attributes):
47 copied = copy.copy(self)
48 for name
in attributes:
49 setattr(copied, name, attributes[name])
62 copied = copy.deepcopy(self)
63 for name
in attributes:
64 setattr(copied, name, attributes[name])
71 args =
', '.join(f
'{a}={getattr(self, a)!r}' for a
in repr_args)
72 return f
"{full_name(self)}({args})"
76 parts =
type(obj).__module__.split(
'.') + [
type(obj).__name__]
77 if len(parts) > 1
and parts[0] ==
'robot':
79 return '.'.join(parts)
def _repr(self, repr_args)
def copy(self, **attributes)
Return shallow copy of this object.
def config(self, **attributes)
Configure model object with given attributes.
def deepcopy(self, **attributes)
Return deep copy of this object.