3 ms·
Indeed. Not enough people seem to be aware of the new dict merge feature introduce: merged_dict = { **source_dict1, **source_dict2, **{
by OOPMan 9y ago
Indeed. Not enough people seem to be aware of the new dict merge feature introduce:
merged_dict = {
**source_dict1,
**source_dict2,
**{
'some_key': 'w00t!'
}
}