That’s really odd, I did a little more testing and found out that it seems to apply to all strongly-typed .NET -style classes like System.Array and Collections.Generic.List, which take a square-bracket type-identifier in their constructor (not sure what the proper term is)
So doing something like
a = System.Array[int]([1,2,3])
also produces the exact same error as above… so it might be a Mono / IronPython specific issue?
I’m running the latest version of Rhino 5.4 WIP (5E397w) on Mac OS 10.13.13 High Sierra, with several other installations of Python on my system.
Is anyone else able to reproduce this?
Update: I did a full purge and reinstall of Rhino, and that seems to have solved the issue - above commands are now working as expected . @jeff_hammond thanks for the help!