[Python-ideas] Have dict().update() return its own reference.

Xavier Ho contact at xavierho.com
Fri Apr 20 14:32:55 CEST 2012


What's the rationale behind the fact that `dict().update()` return nothing?
 If it returned the dictionary reference, at least we could chain methods,
or assign it to another variable, or pass it into a function, etc..

What's the design decision made behind this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120420/87bfdc2a/attachment.html>

More information about the Python-ideas mailing list