(self)
return self.short_name.startswith("__") and self.short_name.endswith("__")
Whether this object is a special member (True) or not (False).

        :type: bool
Whether this object is a special member (True) or not (False).
Whether this object is a special member ( True ) or not ( False ) .
def is_special_member(self):
        """Whether this object is a special member (True) or not (False).

        :type: bool
        """
        return self.short_name.startswith("__") and self.short_name.endswith("__")
def is_special_member ( self ) : return self . short_name . startswith ( "__" ) and self . short_name . endswith ( "__" )