Output of Python script only numbers

For some reason, my output only outputs 1 and 2 in a list form from my GHPython script. Is there a way to ouput the dictionary like in the output terminal in the script editor? I am doing this so I can read the information in GH_CPython because I do not know how to get ghpythonlib or rhinoscriptsyntax into GH_CPython.

Try:

ps = str(ps)

That’s because a “dictionary that is passed as output from a component will be seen as enumerable … This means that only the keys will be resolved” i.e. only the keys are output:

You can output and pass a full dictionary using this “hack”:

2 Likes