[Python-ideas] Dictionary destructing and unpacking.

Antoine Rozo antoine.rozo at gmail.com
Wed Jun 7 18:59:16 EDT 2017


I think you want something similar to locals.update(mydict)?

2017-06-08 0:54 GMT+02:00 Erik <python at lucidity.plus.com>:

> 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.
>
>
> E.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>



-- 
Antoine Rozo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170608/56c0065d/attachment.html>


More information about the Python-ideas mailing list