<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def const(const):
    '''Convenience wrapper to yield the value of a constant'''
    try:
        return getattr(_c, const)
    except AttributeError:
        raise FSQEnvError(errno.EINVAL, u'No such constant:'\
                               u' {0}'.format(const))
    except TypeError:
        raise TypeError(errno.EINVAL, u'const name must be a string or'\
                        u' unicode object, not:'\
                        u' {0}'.format(const.__class__.__name__))