def is_dunder(name: str, exclude_special: bool=False) -> bool:
    'Returns whether name is a dunder name.\n\n    :param exclude_special: Whether to return False for a couple special dunder methods.\n\n    '
    if (exclude_special and (name in SPECIAL_DUNDERS)):
        return False
    return (name.startswith('__') and name.endswith('__'))
Returns whether name is a dunder name.

:param exclude_special: Whether to return False for a couple special dunder methods.
def is_dunder(name: str, exclude_special: bool=False) -> bool:
    'Returns whether name is a dunder name.\n\n    :param exclude_special: Whether to return False for a couple special dunder methods.\n\n    '
    if (exclude_special and (name in SPECIAL_DUNDERS)):
        return False
    return (name.startswith('__') and name.endswith('__'))