def getparam(self, ext, filter=None):
        """Gets the parameter associated with an extension.

        :param ext: The extension to get the parameter for.
        :param filter: An optional filter function to modify the returned
                       parameter, if it exists, e.g. :func:`int()`.
        :returns: Returns None if the extension doesn't exist, the extension
                  doesn't have a parameter, or the filter function raises
                  :class:`ValueEror`.

        """
        try:
            param = self.extensions[ext.upper()]
        except __HOLE__:
            return None
        if filter:
            try:
                return filter(param)
            except ValueError:
                return None
        else:
            return param
dataset/ETHPy150Open slimta/python-slimta/slimta/smtp/extensions.py/Extensions.getparam