import inspect


def default_filter(baseclass, name):
    """Filter out attributes that should be excluded from a proxy class.

    @param baseclass: the class being proxied
    @param name: the C{baseclass} attribute being filtered
    @returns: False if C{baseclass.name} should not be proxied
    """
    if not inspect.ismethod(getattr(baseclass, name)):
        return False
    if name.startswith('_'):
        return False
    return True