<div dir="ltr">I actually don't think it will be very hard.<br><br>On Wednesday, May 25, 2016 at 5:02:52 PM UTC-4, Eric V. Smith wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 5/25/2016 4:14 PM, Ethan Furman wrote:
<br>> On 05/25/2016 01:08 PM, Eric V. Smith wrote:
<br>
<br>>> x, y = extract(mapping, 'a', 'b')
<br>>> print(x, y)
<br>>> 1, 2
<br>>
<br>> Let's pretend you wrote:
<br>>
<br>>   a, b = extract(mapping, 'a', 'b')
<br>>
<br>> since that's the way I would almost always be using it.
<br>>
<br>> The proposal is this:
<br>>
<br>>   a, b = **mapping
<br>>
<br>> The advantages:
<br>>
<br>> - much more readable
<br>> - less duplication
<br>>
<br>> Less duplication might not seem like that big a deal, but it's one of
<br>> the motivators behind decorations and in-place operators, which are both
<br>> wins.
<br>
<br>I agree that would be a win. That's a lot of compiler magic, though.
<br>
<br>Eric.
<br>
<br>
<br>______________________________<wbr>_________________
<br>Python-ideas mailing list
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="zg8Iu-h0AwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">Python...@python.org</a>
<br><a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-ideas\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFj1EaNHnVmh20FnFPoUi4J-MpfQw';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-ideas\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFj1EaNHnVmh20FnFPoUi4J-MpfQw';return true;">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a>
<br>Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHJOrArSUDKkjrnthO6_CznMzkPsA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHJOrArSUDKkjrnthO6_CznMzkPsA';return true;">http://python.org/psf/<wbr>codeofconduct/</a>
<br></blockquote></div>