Пример #1
0
def get_public_methods(obj):
    return [attr for attr in get_methods(obj) if is_public(attr.__name__)]
Пример #2
0
def get_public_attributes(obj):
    return [attr for attr in get_attributes(obj) if is_public(attr.__name__)]
Пример #3
0
def get_public_properties(obj):
    return [attr for attr in get_properties(obj) if is_public(attr.__name__)]
Пример #4
0
def get_public_attribute_names(obj):
    return sorted([attr for attr in dir(obj) if is_public(attr)])