Пример #1
0
def get_private_methods(obj):
    return [attr for attr in get_methods(obj) if is_private(attr.__name__)]
Пример #2
0
def get_private_attributes(obj):
    return [attr for attr in get_attributes(obj) if is_private(attr.__name__)]
Пример #3
0
def get_private_properties(obj):
    return [attr for attr in get_properties(obj) if is_private(attr.__name__)]
Пример #4
0
def get_private_attribute_names(obj):
    return sorted([attr for attr in dir(obj) if not is_private(attr)])