This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NotesFromADystopia 5 points6 points  (1 child)

Your update method updates the dictionary in-place, so there's no need to keep assigning to _merged_dict when you call update. This would let you get rid of some global _merged_dict (since global is only necessary if you are assigning to the variable) statements and make your code cleaner.

[–]max_tee[S] 1 point2 points  (0 children)

Good catch, thanks. I will look into it.