[Python-Dev] Re: Request for comments on final version of PEP 653 (Precise Semantics for Pattern Matching)

2021-04-03 Thread Mark Shannon
Hi Brandt, On 02/04/2021 8:41 pm, Brandt Bucher wrote: Mark Shannon wrote: On 02/04/2021 7:19 am, Brandt Bucher wrote: I agree that self-matching classes should absolutely allow keyword matches. I had no idea the PEP forbade it. PEP 634 allows it. PEP 634 says: For a number of built-in t

[Python-Dev] Re: Request for comments on final version of PEP 653 (Precise Semantics for Pattern Matching)

2021-04-03 Thread Mark Shannon
Hi Guido, On 02/04/2021 10:05 pm, Guido van Rossum wrote: On Fri, Apr 2, 2021 at 12:43 PM Brandt Bucher > wrote: Mark Shannon wrote: > On 02/04/2021 7:19 am, Brandt Bucher wrote: > > I agree that self-matching classes should absolutely allow keyw

[Python-Dev] NOTE: Python 3.9.3 contains an unintentional ABI incompatibility leading to crashes on 32-bit systems

2021-04-03 Thread Łukasz Langa
The memory layout of PyThreadState was unintentionally changed in the recent 3.9.3 bugfix release. This leads to crashes on 32-bit systems when importing binary extensions compiled for Python 3.9.0 - 3.9.2. This is a regression. We will be releasing a hotfix 3.9.4 around 24 hours from now to add

[Python-Dev] Re: Request for comments on final version of PEP 653 (Precise Semantics for Pattern Matching)

2021-04-03 Thread Guido van Rossum
On Sat, Apr 3, 2021 at 4:15 AM Mark Shannon wrote: > Hi Brandt, > > On 02/04/2021 8:41 pm, Brandt Bucher wrote: > > Mark Shannon wrote: > >> On 02/04/2021 7:19 am, Brandt Bucher wrote: > >>> I agree that self-matching classes should absolutely allow keyword > matches. I had no idea the PEP forbad

[Python-Dev] Re: Request for comments on final version of PEP 653 (Precise Semantics for Pattern Matching)

2021-04-03 Thread Guido van Rossum
On Sat, Apr 3, 2021 at 4:20 AM Mark Shannon wrote: > Hi Guido, > > On 02/04/2021 10:05 pm, Guido van Rossum wrote: > > On Fri, Apr 2, 2021 at 12:43 PM Brandt Bucher > [...] > > -1 on checking `__match_args__` anywhere other than the match block > > itself. > > > > Agreed. > > Why? (I

[Python-Dev] Re: NOTE: Python 3.9.3 contains an unintentional ABI incompatibility leading to crashes on 32-bit systems

2021-04-03 Thread Miro Hrončok
On 03. 04. 21 21:44, Łukasz Langa wrote: The memory layout of PyThreadState was unintentionally changed in the recent 3.9.3 bugfix release. This leads to crashes on 32-bit systems when importing binary extensions compiled for Python 3.9.0 - 3.9.2. This is a regression. We will be releasing a h

[Python-Dev] Re: Request for comments on final version of PEP 653 (Precise Semantics for Pattern Matching)

2021-04-03 Thread Brandt Bucher
Mark Shannon said: > I was relying on the "reference" implementation, which is also in the PEP. Can you please stop putting scare quotes around "reference implementation"? You've done it twice now, and it's been a weekend-ruiner for me each time. I've put months of work into writing and improvin

[Python-Dev] Re: NOTE: Python 3.9.3 contains an unintentional ABI incompatibility leading to crashes on 32-bit systems

2021-04-03 Thread Terry Reedy
On 4/3/2021 7:15 PM, Miro Hrončok wrote: On 03. 04. 21 21:44, Łukasz Langa wrote: The memory layout of PyThreadState was unintentionally changed in the recent 3.9.3 bugfix release. This leads to crashes on 32-bit systems when importing binary extensions compiled for Python 3.9.0 - 3.9.2. This

[Python-Dev] Re: NOTE: Python 3.9.3 contains an unintentional ABI incompatibility leading to crashes on 32-bit systems

2021-04-03 Thread Gregory P. Smith
On Sat, Apr 3, 2021 at 7:49 PM Terry Reedy wrote: > On 4/3/2021 7:15 PM, Miro Hrončok wrote: > > On 03. 04. 21 21:44, Łukasz Langa wrote: > >> The memory layout of PyThreadState was unintentionally changed in the > >> recent 3.9.3 bugfix release. This leads to crashes on 32-bit systems > >> when