def repr_result(obj: Any, elements: List[str],
                with_addr: bool = False, joiner: str = COMMA_SPACE) -> str:
    """
    Internal function to make a :func:`repr`-style representation of an object.

    Args:
        obj: object to display
        elements: list of object ``attribute=value`` strings
        with_addr: include the memory address of ``obj``
        joiner: string with which to join the elements

    Returns:
        string: :func:`repr`-style representation

    """
    if with_addr:
        return "<{qualname}({elements}) at {addr}>".format(
            qualname=obj.__class__.__qualname__,
            elements=joiner.join(elements),
            addr=hex(id(obj)))
    else:
        return "{qualname}({elements})".format(
            qualname=obj.__class__.__qualname__,
            elements=joiner.join(elements))
def repr_result ( obj : Any , elements : List [ str ] , with_addr : bool = False , joiner : str = COMMA_SPACE ) -> str : if with_addr : return "<{qualname}({elements}) at {addr}>" . format ( qualname = obj . __class__ . __qualname__ , elements = joiner . join ( elements ) , addr = hex ( id ( obj ) ) ) else : return "{qualname}({elements})" . format ( qualname = obj . __class__ . __qualname__ , elements = joiner . join ( elements ) )
Internal function to make a :func:`repr`-style representation of an object.

    Args:
        obj: object to display
        elements: list of object ``attribute=value`` strings
        with_addr: include the memory address of ``obj``
        joiner: string with which to join the elements

    Returns:
        string: :func:`repr`-style representation