Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is a conter proposal to use classmethod like this from another core developer.


with 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: