16 |
If no mapping can be found then default data will |
If no mapping can be found then default data will |
17 |
be returned. Input values must be hashable objects |
be returned. Input values must be hashable objects |
18 |
|
|
19 |
See the description of GetClassData() for more information |
See the description of GetGroup() for more information |
20 |
on the mapping algorithm. |
on the mapping algorithm. |
21 |
""" |
""" |
22 |
|
|
406 |
def Matches(self, value): |
def Matches(self, value): |
407 |
return self.min <= value < self.max |
return self.min <= value < self.max |
408 |
|
|
409 |
def GetProperties(self, value): |
def GetProperties(self, value = None): |
410 |
if value is None: return self.prop |
if value is None: return self.prop |
411 |
|
|
412 |
if self.Matches(value): |
if self.Matches(value): |