I’m having a huge problem with python embed in rhino. I’m working with a dictionary, trying to run a loop on it but python 2.7 shows a non-sequencial values of the dictionary when I run this loop. It happens when I print all the dictionary, too. The sorted() function does not work in this case because I’m using numbers (floats,int) as strings. And when I sort it the number 10 comes before the number 4, for example.
I tested it in python 3.9, and it works as expected, the dictionary is shown as it’s written, the loop runs ok, the positions are all correct. I also tested it in python 2.7 outside rhino and it runs like IronPython IDE.
It is a python 2.7 issue.
Please, update python in rhino on the next versions, help us make better scripts.
On this job I will have to make an unconvinient workaround to run it as expected.