3 ms·
There is a conter proposal to use classmethod like this from another core developer.
by Znafon 8y ago
There is a conter proposal to use classmethod like this from another core developer.
- rurban 8y agowith an object method you could return the changed dict (ref semantics, much faster) and as class methodcall you would return a copy, as with +. d.merge(d1) vs dict.merge(d, d1) So have the best of both worlds, and backwards compatible.