[Python-ideas] Unpacking a dict

Chris Angelico rosuav at gmail.com
Thu May 26 22:57:56 EDT 2016


On Fri, May 27, 2016 at 12:43 PM, Rob Cliffe <rob.cliffe at btinternet.com> wrote:
> How about
>
>     locals().update(values)

Because locals() can't be updated unless it happens to be the same
dict as globals(), in which case it's clearer to use that name.

ChrisA


More information about the Python-ideas mailing list