>>> { 'a' : 1 } | { 'a' : 2 }
ISTM the most logical result would be: { 'a' : { 1, 2 } }
...but I could certainly understand throwing an exception. >>> { 'a' : 1 } | { 'a' : 2 }
ISTM the most logical result would be: { 'a' : { 1, 2 } }
...but I could certainly understand throwing an exception.I'm not saying you have a bad idea/logic here, just that I'm not sure it's the best thing for the dict.