def _listrepr(x):
    """ Represent a list in a short fashion, for easy representation. """

    try:
        len(x)
    except TypeError:
        return None
    else:
        return '<%d element%s>' % (len(x), 's'[:len(x) >= 2])