def make_fdel(name, var_name=None):
    """Make a deleter for `property()`'s `fdel` param

    Args:
        name (str): property name
        var_name (str): internal variable name.

    Returns:
        function: A deleter function
    """
    def fdel(self):
        if var_name:
            delattr(self, var_name)
        else:
            raise AttributeError("Constant readonly property '%s' can not be "
                                 "deleted by %r" % (name, self,))
    return fdel