[Python-Dev] Re: enum in the stable ABI (Was: PEP 558: Defined semantics for locals)

2021-07-23 Thread Devin Jeanpierre
On Fri, Jul 23, 2021 at 7:40 AM Petr Viktorin wrote: [snip] > On 21. 07. 21 14:18, Nick Coghlan wrote: > [snip] > > Please don't put the enum in the stable ABI. If we would add another > > value and then an older extension would receive it, we'd get > undefined > > behavior. > > >

[Python-Dev] Re: enum in the stable ABI (Was: PEP 558: Defined semantics for locals)

2021-07-23 Thread Nick Coghlan
On Sat, 24 Jul 2021, 9:37 am Larry Hastings, wrote: > > On 7/23/21 7:38 AM, Petr Viktorin wrote: > > (In both C & C++, the size of an `enum` is implementation-defined. That's > unlikely to be a problem in practice, but one more point against enum.) > > > True, but there's always the old trick of

[Python-Dev] Re: Bug report

2021-07-23 Thread Nick Coghlan
On Fri, 23 Jul 2021, 2:22 am Ee Durbin, wrote: > On Wed, Jul 21, 2021 at 7:45 PM Kyle Stanley wrote: > >> On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc < >> gd.minhduc1...@gmail.com> wrote: >> >>> Hi, >>> >>> When I find what's new in 3.10 beta in >>> https://docs.python.org/whatsnew/3.10.

[Python-Dev] Re: enum in the stable ABI (Was: PEP 558: Defined semantics for locals)

2021-07-23 Thread Larry Hastings
On 7/23/21 7:38 AM, Petr Viktorin wrote: (In both C & C++, the size of an `enum` is implementation-defined. That's unlikely to be a problem in practice, but one more point against enum.) True, but there's always the old trick of sticking in a value that forces it to be at least 32-bit:

[Python-Dev] Summary of Python tracker Issues

2021-07-23 Thread Python tracker
ACTIVITY SUMMARY (2021-07-16 - 2021-07-23) Python tracker at https://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open7420 (+17) closed 49041 (+54) total 56461 (+71) Open issues w

[Python-Dev] enum in the stable ABI (Was: PEP 558: Defined semantics for locals)

2021-07-23 Thread Petr Viktorin
On 22. 07. 21 12:41, Nick Coghlan wrote: On Thu, 22 Jul 2021, 6:01 pm Petr Viktorin, > wrote: On 21. 07. 21 14:18, Nick Coghlan wrote: > On Mon, 19 Jul 2021 at 21:32, Petr Viktorin mailto:encu...@gmail.com>> wrote: >> The proposal assumes that in the