def reprify(obj, fields):
    """
    Returns a string suitable as a ``__repr__`` for ``obj`` that includes the
    fields in the list ``fields``
    """
    return '{0.__module__}.{0.__name__}({1})'.format(
        type(obj),
        ', '.join('{}={!r}'.format(f, getattr(obj, f)) for f in fields),
    )