<div dir="ltr">In some sense async and await are like this group you describe, the keyword "await" doesn't have meaning outside a function annotated with "async".<br><br>The issue I'd have with your proposal is that it requires the "suite" to be an expression-based multi-line statement, ie. where the last statement becomes the value that is matched against. Similar to the original proposal that started this thread: these sorts of expression-based constructs don't feel that natural for Python.<br><br>On Saturday, May 12, 2018 at 2:50:49 PM UTC, Andrés Delfino wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div><div><div><div><div>I find it weird for case statements to be "inside" match statements. There's isn't a statement "group" that works this way right now, AFAIK.<br><br></div>This would also be weird:<br><br></div>match X:<br></div>case Y:<br>...<br><br></div>I thought a form based on try would make more coherent:<br><br>match:<br> suite<br>case x:<br></div><div> suite1<br></div><div>else:<br></div><div> suite2<br></div><div><br></div><div>suite would be executed, and the last expression would be checked against each case. If no matching case is found, suite2 would be executed.<br><br></div><div>Does it make sense?<br></div></div><div><br><div class="gmail_quote">On Sat, May 12, 2018 at 8:51 AM, Steven Heidel <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="iA8yuxP1BgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">ste...@rigetti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Great! Also emailed you with logistics.<br><br><div class="gmail_quote"><div><div><div dir="ltr">On Sat, May 12, 2018, 01:43 Jelle Zijlstra <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="iA8yuxP1BgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jelle.z...@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_quote"><div><div class="gmail_quote"><div><div>2018-05-11 22:01 GMT-04:00 Robert Roskam <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="iA8yuxP1BgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">raider...@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hey Steven,<div><br></div><div>I'm also at PyCon. Shall we take this off list and attempt to meet up and discuss?<div><div><br></div></div></div></div></div></div></blockquote></div></div></div></div><div dir="ltr"><div class="gmail_quote"><div><div class="gmail_quote"><div><div dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">I'm also at PyCon and interested in meeting about this. I just wrote up a basic and incomplete implementation for pattern-matching yesterday between and after: talks: <a href="https://github.com/JelleZijlstra/cpython/blob/matchcase/Lib/test/test_matching.py" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FJelleZijlstra%2Fcpython%2Fblob%2Fmatchcase%2FLib%2Ftest%2Ftest_matching.py\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMAFex7Q2vbFsewloZu8CUcbyWw';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FJelleZijlstra%2Fcpython%2Fblob%2Fmatchcase%2FLib%2Ftest%2Ftest_matching.py\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMAFex7Q2vbFsewloZu8CUcbyWw';return true;">https://github.com/<wbr>JelleZijlstra/cpython/blob/<wbr>matchcase/Lib/test/test_<wbr>matching.py</a>. It's nowhere near complete, but an implementation like this can help inform what the syntax should look like.</div></div></div></div></div></div>
<p></p></div></div>
-- <br>
<br>
--- <br>
You received this message because you are subscribed to a topic in the Google Groups "python-ideas" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/python-ideas/nqW2_-kKrNg/unsubscribe" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/topic/python-ideas/nqW2_-kKrNg/unsubscribe';return true;" onclick="this.href='https://groups.google.com/d/topic/python-ideas/nqW2_-kKrNg/unsubscribe';return true;">https://groups.google.com/d/<wbr>topic/python-ideas/nqW2_-<wbr>kKrNg/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="iA8yuxP1BgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">python-ideas...@<wbr>googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.<span><br>
______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="iA8yuxP1BgAJ" 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" rel="nofollow" target="_blank" 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/" rel="nofollow" target="_blank" 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>
<br></span><span><font color="#888888">
-- <br>
<br>
--- <br>
You received this message because you are subscribed to a topic in the Google Groups "python-ideas" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/python-ideas/nqW2_-kKrNg/unsubscribe" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/topic/python-ideas/nqW2_-kKrNg/unsubscribe';return true;" onclick="this.href='https://groups.google.com/d/topic/python-ideas/nqW2_-kKrNg/unsubscribe';return true;">https://groups.google.com/d/<wbr>topic/python-ideas/nqW2_-<wbr>kKrNg/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="iA8yuxP1BgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">python-ideas...@<wbr>googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</font></span></blockquote></div>
<br>______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="iA8yuxP1BgAJ" 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" rel="nofollow" target="_blank" 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/" rel="nofollow" target="_blank" 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>
<br></blockquote></div><br></div>
</blockquote></div>