In, python3.9, the merge operator (|
), is used for merging dictionaries together. Kind of like this:
foo = {1:'spam', 'eggs':2}
bar = {3:'foo', 'eggs':'foo'}
foobar = foo|bar
But how is the merge operator used in python3.8 and lower, besides merging dictionaries together?