Skip to content

Commit

Permalink
fixed #392
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Dec 12, 2023
1 parent 1a71c2b commit 831f136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/2.x/List.ReplaceItemAtIndex+.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"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",
"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",
"Engine": "IronPython2",
"VariableInputPorts": true,
"Id": "c05d5d62b15545d09719af88c1b2148e",
Expand Down

0 comments on commit 831f136

Please sign in to comment.