(object)
return results
Wrap inspect.classify_class_attrs, with fixup for data descriptors.
Wrap inspect.classify_class_attrs, with fixup for data descriptors.
Wrap inspect . classify_class_attrs with fixup for data descriptors .
def classify_class_attrs(object):
    """Wrap inspect.classify_class_attrs, with fixup for data descriptors."""
    results = []
    for (name, kind, cls, value) in inspect.classify_class_attrs(object):
        if inspect.isdatadescriptor(value):
            kind = 'data descriptor'
            if isinstance(value, property) and value.fset is None:
                kind = 'readonly property'
        results.append((name, kind, cls, value))
    return results
def classify_class_attrs ( object ) : results = [ ] for ( name , kind , cls , value ) in inspect . classify_class_attrs ( object ) : if inspect . isdatadescriptor ( value ) : kind = 'data descriptor' if isinstance ( value , property ) and value . fset is None : kind = 'readonly property' results . append ( ( name , kind , cls , value ) ) return results