[Python-ideas] Unpacking a dict

Michael Selik michael.selik at gmail.com
Wed May 25 20:37:58 EDT 2016

On Wed, May 25, 2016 at 7:41 PM Ethan Furman <ethan at stoneleaf.us> wrote:

> it should just be:
>    a, b = mapping

Breaks backwards compatibility.

    py> a, b = {'a': 1, 'b': 2}
    py> a, b
    ('b', 'a')

Sorry for the double-post. I should have pondered longer before sending...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160526/1d015b91/attachment.html>

More information about the Python-ideas mailing list