Dict/Set Parsing Order Consistency
问题 Containers that take hashable objects (such as dict keys or set items). As such, a dictionary can only have one key with the value 1 , 1.0 or True etc. (note: simplified somewhat - hash collisions are permitted, but these values are considered equal) My question is: is the parsing order well-defined and is the resulting object predictable across implementations? For example, OSX Python 2.7.11 and 3.5.1 interprets dict like so: >>> { True: 'a', 1: 'b', 1.0: 'c', (1+0j): 'd' } {True: 'd'} In