Imagine I have
dict1 = {'uno':[1,2,3],'dos':[4,5,6]}
and
dictA = {'AA':'ZZZZZ'}
This works:
dict1.update(dictA)
Result: {'uno': [1, 2, 3], 'dos': [4, 5, 6], 'AA':'ZZZZZ'}
But this does not work:
B = dict1.update(dictA)
The result is not an error but Result is None, which makes this behaviour (IMMO) strange and dangerous since the code does not crash.
So Why is returning None and not giving error?
Note: It looks like the way to go is:
C = dict1.update(dictA)
B = {}
B.update(dict1)
B.update(dictA)
B
C is none B is OK here