11 __doc__ =
"""The python module holding python bindings to DataHandle"""
15 __slots__ = (
"Path",
"Mode",
"Type",
"IsCondition")
19 def __init__(self, path, mode="R", _type="unknown_t", isCond=False):
27 return {s: getattr(self, s)
for s
in self.
__slots__}
31 setattr(self, s, state[s])
35 Need especially Configurable.isPropertySet when checked against default.
37 if isinstance(other, DataHandle):
39 if isinstance(other, str):
40 return self.
Path == other
44 "Unknown equality check: type=%r, repr=%r" % (
type(other), other)
49 This is mandatory if __eq__ is defined.
51 return not self == other
57 args =
"'%s','%s','%s'" % (self.
Path, self.
Mode, self.
Type)
60 return "%s(%s)" % (self.__class__.__name__, args)
78 return repr(str(self))