Oct-04-2017, 07:25 AM
Just don't use legacy Python and/or versions which are older then 2 years. Since Python 3.5 (i guess) you can use key unpacking inside a dict constructor. Here an example:
d1 = {1:'one',2:'two'} d2 = {2:'deux',3:'trois'} d3 = {**d1, **d2} print(d3)Yay, it does what is looks like.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!