def listConnections(attr):
    'List connections of `attr`\n\n    Arguments:\n        attr (Plug or Node):\n\n    Example:\n        >>> node1 = createNode("transform")\n        >>> node2 = createNode("mesh", parent=node1)\n        >>> node1["v"] >> node2["v"]\n        >>> listConnections(node1) == [node2]\n        True\n        >>> listConnections(node1 + ".v") == [node2]\n        True\n        >>> listConnections(node1["v"]) == [node2]\n        True\n        >>> listConnections(node2) == [node1]\n        True\n\n    '
    return list((node for node in attr.connections()))
List connections of `attr`

Arguments:
    attr (Plug or Node):

Example:
    >>> node1 = createNode("transform")
    >>> node2 = createNode("mesh", parent=node1)
    >>> node1["v"] >> node2["v"]
    >>> listConnections(node1) == [node2]
    True
    >>> listConnections(node1 + ".v") == [node2]
    True
    >>> listConnections(node1["v"]) == [node2]
    True
    >>> listConnections(node2) == [node1]
    True
def listConnections(attr):
    'List connections of `attr`\n\n    Arguments:\n        attr (Plug or Node):\n\n    Example:\n        >>> node1 = createNode("transform")\n        >>> node2 = createNode("mesh", parent=node1)\n        >>> node1["v"] >> node2["v"]\n        >>> listConnections(node1) == [node2]\n        True\n        >>> listConnections(node1 + ".v") == [node2]\n        True\n        >>> listConnections(node1["v"]) == [node2]\n        True\n        >>> listConnections(node2) == [node1]\n        True\n\n    '
    return list((node for node in attr.connections()))