From 08bb7885d1402873d58abddd9e67b1c069ce0c24 Mon Sep 17 00:00:00 2001 From: Andreas Dieckmann Date: Sun, 18 Feb 2024 10:39:07 +0100 Subject: [PATCH] fixed #376 --- nodes/2.x/List.ReplaceItemAtIndex+.dyf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/2.x/List.ReplaceItemAtIndex+.dyf b/nodes/2.x/List.ReplaceItemAtIndex+.dyf index 5d2a8a38..f875a1be 100644 --- a/nodes/2.x/List.ReplaceItemAtIndex+.dyf +++ b/nodes/2.x/List.ReplaceItemAtIndex+.dyf @@ -18,7 +18,7 @@ { "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels", "NodeType": "PythonScriptNode", - "Code": "_list = IN[0]\r\nrValues = IN[1]\r\niValues = IN[2]\r\nif iValues:\r\n\tif isinstance(iValues, list):\r\n\t\tif not isinstance(rValues, list): rValues = [rValues] * len(iValues)\r\n\t\tfor (index, value) in zip(iValues, rValues):\r\n\t\t\t_list[index] = value\r\n\telse: _list[iValues] = rValues\r\nOUT = _list", + "Code": "_list = IN[0]\r\nrValues = IN[1]\r\niValues = IN[2]\r\nif isinstance(iValues, list):\r\n\tif not isinstance(rValues, list): rValues = [rValues] * len(iValues)\r\n\tfor (index, value) in zip(iValues, rValues):\r\n\t\t_list[index] = value\r\nelse: _list[iValues] = rValues\r\nOUT = _list", "Engine": "IronPython2", "VariableInputPorts": true, "Id": "c05d5d62b15545d09719af88c1b2148e",