11 __doc__ =
"""The python module holding python bindings to DataHandle"""
16 __slots__ = (
"Path",
"Mode",
"Type",
"IsCondition")
20 def __init__(self, path, mode="R", _type="unknown_t", isCond=False):
28 return {s: getattr(self, s)
for s
in self.
__slots__}
32 setattr(self, s, state[s])
36 Need especially Configurable.isPropertySet when checked against default.
38 if isinstance(other, DataHandle):
40 if isinstance(other, str):
41 return self.
Path == other
45 "Unknown equality check: type=%r, repr=%r" % (
type(other), other)
50 This is mandatory if __eq__ is defined.
52 return not self == other
58 args =
"'%s','%s','%s'" % (self.
Path, self.
Mode, self.
Type)
61 return "%s(%s)" % (self.__class__.__name__, args)
79 return repr(str(self))