def _lookup(dic, key):
    """Lookup a key in a dictionary, where None returns an empty string
    but an unmatched key returns a question mark. Used in :class:`G2VarObj`
    """
    if key is None:
        return ''
    elif key == '*':
        return '*'
    else:
        return dic.get(key, '?')
