[Python-ideas] Match statement brainstorm

Michael Selik michael.selik at gmail.com
Fri May 27 10:55:37 EDT 2016


On Fri, May 27, 2016, 3:21 AM Stephen J. Turnbull <stephen at xemacs.org>
wrote:

> it is the nested case where I would really like destructuring.


After more than 100 notes in the dict unpacking thread, I've come to the
same conclusion. Python already has great tools via tuple unpacking,
comprehensions, sets, and the various well-thought methods.

Destructuring even a shallowly nested dictionary needs either ugly nested
loops or helper functions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160527/a048c38b/attachment.html>


More information about the Python-ideas mailing list