I have a dictionary called wantedPoints
.
Performing a deep copy on the dictionary using this line:
copyWantedPoints = deepcopy(wantedPoints)
The result I get is this:
wantedPoints
{'AB12': [], 'GPS1': [], 'GPS3': [], 'BS3': [], 'AB41': [], 'C3': [], 'AB43': [], 'AB42': [], 'AB45': [], 'AB44': [], 'AB47': [], 'AB46': [], 'AB49': [], 'AB48': [], 'C2': [], 'C5': []}
copyWantedPoints
{'AB12': [], 'GPS1': [], 'GPS3': [], 'BS3': [], 'AB41': [], 'AB49': [], 'AB43': [], 'AB42': [], 'AB45': [], 'AB44': [], 'AB47': [], 'AB46': [], 'C3': [], 'AB48': [], 'C2': [], 'C5': []}
As you can see, everything stays the same except for two keys, C3
and AB49
changed their position in the dictionary.
Any idea why that happens?