def coerce(value1, value2, default=None):
if value1 is not NoSet:<EOL><INDENT>return value1<EOL><DEDENT>elif value2 is not NoSet:<EOL><INDENT>return value2<EOL><DEDENT>else:<EOL><INDENT>return default<EOL><DEDENT>
Exclude NoSet objec

    .. code-block::

        >>> coerce(NoSet, 'value')
        'value'