In fact, you can give the constructor object any enumerable object. It can be a string ArrayList, a List<object>, a List<string>, a PythonDictionary, a HashSet, string, an array of bytes. Whatever you want - if you can list it in IronPython, you can pass it to the constructor.
So, for example, you could do:
new PythonTuple(new[] { 1, 2, 3 });
source
share