def is_symspec(symspec):
    """
    returns True if `symspec` can be used as a symbol specification.
    """
    if not hasattr(symspec, 'name'):
        return False
    if not hasattr(symspec, 'prec'):
        return False
    return True