Example #1
0
def mro_get_value_list(cls, name):
    '''Return a list with all `cls` class attributes in MRO.'''
    from xoutil.inspect import _static_getmro
    mro = _static_getmro(type_coerce(cls))
    return [t.__dict__[name] for t in mro if name in t.__dict__]
Example #2
0
 def __init__(self, target):
     from xoutil.inspect import _static_getmro
     type_ = type_coerce(target)
     target_mro = _static_getmro(type_)
     self._probes = tuple(c.__dict__ for c in target_mro)
     self._keys = set()