On Wed, 8 Jul 2020 20:08:34 +0200 Antoine Pitrou <solip...@pitrou.net> wrote: > On Wed, 8 Jul 2020 18:38:12 +0100 > Rhodri James <rho...@kynesim.co.uk> wrote: > > On 08/07/2020 16:02, Guido van Rossum wrote: > > > Today I’m happy (and a little trepidatious) to announce the next > > > version of PEP 622, Pattern Matching. > > > > Thank you very much to everyone who has been working on this, it is much > > appreciated. I have one suggestion for the text: could the section on > > Capture Patterns emphasise that only simple (i.e not dotted) names are > > capture patterns? The simplified grammar is (fairly) clear and the > > later section on Constant Value Patterns should make it obvious, but > > somehow when reading version 1 I still managed to miss it. I was quite > > surprised when it was pointed out that > > > > case (point.x, point.y): > > > > wasn't going to do what I expected! > > Why did you expect? It's not clear to me what it should do at all :-)
Sorry: /what/ did you expect? Regards Antoine. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/VSO5QIGO33GY6KFEHA5RVI2PUNBF3OI3/ Code of Conduct: http://python.org/psf/codeofconduct/