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 :-)

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/KWALLGME2BPIJSSSZVI3THPDL32MU3DI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to