I just stumbled across this. Why does it return a set([...])
rather than just a value?
Comma separated values enclosed with {}
is set notation for python. It probably didn't see a key:value
pair and fell back to making it a set.
Were you trying to make a dictionary with a key that had an empty value?
2 Likes
No, I was being stupid, adding { }
in the script as I would have in an expression!
Thanks.
1 Like