[Python-ideas] Dictionary destructing and unpacking.

C Anthony Risinger c at anthonyrisinger.com
Wed Jun 7 19:15:43 EDT 2017


On Jun 7, 2017 5:54 PM, "Erik" <python at lucidity.plus.com> wrote:

On 07/06/17 23:42, C Anthony Risinger wrote:

> Neither of these are really comparable to destructuring.
>

No, but they are comparable to the OP's suggested new built-in method
(without requiring each mapping type - not just dicts - to implement it).
That was what _I_ was responding to.


No worries, I only meant to emphasize that destructuring is much much more
powerful and less verbose/duplicative than anything based on functions. It
could readily apply/fallback against any object's __dict__ because maps
underpin the entire Python object system.

-- 

C Anthony [mobile]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170607/30700243/attachment.html>


More information about the Python-ideas mailing list