Well, this is why I mentioned about output hinting. There could be a number of hints transforming an IronPython non-generic list into a typed one (I assume an Array[sometype]). So the user can pick what kind of data to output.
e.g. IronPython list
myList = ["1",2,3,4,5.0]
and there are three hints
Array[String] transforming the list into [“1”,“2”,“3”,“4”,“5.0”]
Array[Int] → [1,2,3,4,5]
Array[Double] → [1.0,2.0,3.0,4.0,5.0]
in case of [ [ ],[ ],[ ] ] kind of list the above hinting should show an exception and a Tree transformation should be performed, a different hint.
This is the thing I am asking to happen by output hinting.
No guessing. If there is no hint and you export nested list you’ll see IronPythonList bla bla. But if you pick a hint to be exactly Array[int] it will automatically translate it to GH list, without having to implement the translation inside the scripting component.