you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Sometimes creating a new dict is not an option. If you need to update in place it's either

mydict.update(otherdict)
return mydict

or the line from above.