def resolve(<EOL>self,<EOL>configurable=None, conf=None, scope=None, ptype=None,<EOL>parser=None, error=True, svalue=None,<EOL>safe=None, besteffort=None<EOL>):
result = self._value<EOL>if self._value is None and self._svalue is not None:<EOL><INDENT>self._error = None  <EOL>if ptype is None:<EOL><INDENT>ptype = self.ptype<EOL><DEDENT>if parser is None:  <EOL><INDENT>parser = self.parser<EOL><DEDENT>if svalue is None:<EOL><INDENT>svalue = self._svalue<EOL><DEDENT>if conf is None:  <EOL><INDENT>conf = self.conf<EOL><DEDENT>if configurable is None:  <EOL><INDENT>configurable = self.configurable<EOL><DEDENT>if scope is None:<EOL><INDENT>scope = self.scope<EOL><DEDENT>else:<EOL><INDENT>scope, selfscope = self.scope.copy(), scope<EOL>scope.update(selfscope)<EOL><DEDENT>if safe is None:<EOL><INDENT>safe = self.safe<EOL><DEDENT>if besteffort is None:<EOL><INDENT>besteffort = self.besteffort<EOL><DEDENT>try:<EOL><INDENT>result = self._value = parser(<EOL>svalue=svalue, conf=conf,<EOL>configurable=configurable, ptype=ptype,<EOL>scope=scope, safe=safe, besteffort=besteffort<EOL>)<EOL><DEDENT>except Exception as ex:<EOL><INDENT>self._error = ex<EOL>if error:<EOL><INDENT>msg = '<STR_LIT>'<EOL>msg = msg.format(self._svalue, self.parser)<EOL>reraise(Parameter.Error, Parameter.Error(msg))<EOL><DEDENT><DEDENT><DEDENT>return result<EOL>
Resolve this parameter value related to a configurable and a
        configuration.

        Save error in this attribute `error` in case of failure.

        :param str svalue: serialized value too resolve. Default is this svalue.
        :param Configurable configurable: configurable to use for foreign
            parameter resolution.
        :param Configuration conf: configuration to use for
            cross-value resolution.
        :param dict scope: variables to use for local expression evaluation.
        :param type ptype: return type. Default is this ptype.
        :param parser: specific parser to use. Default this parser.
        :param bool error: raise an error if True (False by default).
        :param bool safe: if True (default) resolve without builtins functions.
        :param bool besteffort: best effort flag. Default is this besteffort.
        :return: newly resolved value.
        :raises: Parameter.Error for any raised exception.