[Python-Dev] Re: PEP 622 questions

2020-08-17 Thread Guido van Rossum
On Mon, Aug 17, 2020 at 3:37 AM Mark Shannon wrote: > > > On 16/08/2020 9:41 pm, Guido van Rossum wrote: > > On Sun, Aug 16, 2020 at 12:37 PM Jean Abou Samra > > wrote: > > Also, I see potential for a caveat: > > > > match number: > >case int: # missing

[Python-Dev] Re: PEP 622 questions

2020-08-17 Thread Guido van Rossum
On Mon, Aug 17, 2020 at 10:04 AM Jean Abou Samra wrote: [Jean] > Finally, was as-based syntax considered as an alternative to walrus >> patterns, that is, PATTERN as NAME instead of NAME := PATTERN, as we have >> in the try statement? Given the extensive discussion, I guess it might have >> been

[Python-Dev] Re: PEP 622 questions

2020-08-17 Thread Jean Abou Samra
> OOI, what possibilities? I'm genuinely interested know what problems PEP 622 > would solve for you. It's somehow the same use case as Oscar Benjamin's: transform algebraic expressions (the goal being to calculate them step by step -- still under development). You have a series of rules to ap

[Python-Dev] Re: PEP 622 questions

2020-08-17 Thread Jean Abou Samra
Hi, Thanks for your reply! > Le 16 août 2020 à 22:41, Guido van Rossum a écrit : > >> On Sun, Aug 16, 2020 at 12:37 PM Jean Abou Samra wrote: >> Hi there, >> >> As a poor user, I am extremely excited about the possibilities PEP 622 >> (structural pattern matching) opens. I'd like to ask a fe

[Python-Dev] Re: PEP 622 questions

2020-08-17 Thread Mark Shannon
On 16/08/2020 9:41 pm, Guido van Rossum wrote: On Sun, Aug 16, 2020 at 12:37 PM Jean Abou Samra > wrote: Hi there, As a poor user, I am extremely excited about the possibilities PEP 622 (structural pattern matching) opens. I'd like to ask a few quest

[Python-Dev] Re: PEP 622 questions

2020-08-17 Thread Mark Shannon
On 16/08/2020 8:23 pm, Jean Abou Samra wrote: Hi there, As a poor user, I am extremely excited about the possibilities PEP 622 (structural pattern matching) opens. I'd like to ask a few questions. OOI, what possibilities? I'm genuinely interested know what problems PEP 622 would solve for

[Python-Dev] Re: PEP 622 questions

2020-08-16 Thread Guido van Rossum
On Sun, Aug 16, 2020 at 12:37 PM Jean Abou Samra wrote: > Hi there, > > As a poor user, I am extremely excited about the possibilities PEP 622 > (structural pattern matching) opens. I'd like to ask a few questions. > > I hope these were not already answered in other threads, which it is hard > to