python programming style question: You have two dicts, A and B. if the key 'foo'...
Alice Averlong🏳️⚧️ @foone@digipres.club
python programming style question:
You have two dicts, A and B. if the key 'foo' exists in B, set the key foo in A to value of B['foo'] (and don't throw an exception if not)
One way to code this would be:
if 'foo' in B:
A['foo'] = B['foo']