[Python-Dev] Re: Critique of PEP 622 (Structural Pattern Matching)

2020-08-15 Thread Guido van Rossum
On Sat, Aug 15, 2020 at 5:00 PM Steven D'Aprano wrote: > I guess at some point I shall have to read the entire thread if I want > to have an opinion on this feature. > Or you could try reading the PEP itself. :-) It'll be quicker than reading all the commentary, and (unlike the first version) it

[Python-Dev] Re: Critique of PEP 622 (Structural Pattern Matching)

2020-08-15 Thread Steven D'Aprano
On Sat, Aug 15, 2020 at 03:06:46PM -0700, Guido van Rossum wrote: > But Mark's repo doesn't replace any of the threads -- it just repeats > Mark's own arguments, which are exclusively focused on the examples in the > PEP (it's as if Mark read nothing *but* the examples). Oh, I'm sorry, I based

[Python-Dev] Re: Critique of PEP 622 (Structural Pattern Matching)

2020-08-15 Thread Guido van Rossum
On Fri, Aug 14, 2020 at 11:42 PM Steven D'Aprano wrote: > On Sat, Aug 15, 2020 at 12:36:25AM +1000, Chris Angelico wrote: > > > Do you have anything new to add to the discussion, or is this 2000 > > lines of rehash? > > Having a summary of objections/critiques in one place is far better than > ex

[Python-Dev] Re: f_localsplus[0] == NULL in super_init_without_args()

2020-08-15 Thread Guido van Rossum
This function is called from only one place. Maybe there are special conditions that the one call site already ensures? I tried to see if there are situations where obj==NULL arises, and there are. I'm a little unclear on where -- I've narrowed down one case to any class inheriting from Protocol,