Is there any good reason why no set method in Python dict?
many times , when I write code when using dict d = {} d['name'] = 'John' d['age'] = 40something like that , i wonder why there is not set method on dict, because get method is in there, and there even a setdefault method , which is very confusing , since it's main usage is to get valueanyway , i dont' see a good reason not to put a set method like thisdef set (self, k, v, exists=True): ''' ...