[Python-Dev] Re: Should PEP 8 be updated for Python 3 only?

2021-08-24 Thread Christopher Barker
On Tue, Aug 24, 2021 at 9:53 PM Guido van Rossum wrote: > Since PEP 8 is a "living document" that is occasionally updated, I think > that's reasonable. Don't go overboard. I found 10 occurrences of the string > "python 2" in the text. You might also want to strike the paragraph that > links to

[Python-Dev] Re: Should PEP 8 be updated for Python 3 only?

2021-08-24 Thread Guido van Rossum
Since PEP 8 is a "living document" that is occasionally updated, I think that's reasonable. Don't go overboard. I found 10 occurrences of the string "python 2" in the text. You might also want to strike the paragraph that links to reference [6]. On Tue, Aug 24, 2021 at 9:42 PM Christopher Barker

[Python-Dev] Should PEP 8 be updated for Python 3 only?

2021-08-24 Thread Christopher Barker
I just noticed that PEP 8 has quite a few references to Python 2. Perhaps it's time to remove those. There are more and more folks that have never learned or used Python 2 -- having those notes in PEP 8 is just confusing. And for folks that are still maintaining Py 2 code -- it's probably too

[Python-Dev] A ban from Core Developer spaces.

2021-08-24 Thread Thomas Wouters
All, After some consideration at our weekly meeting (this monday), and a recommendation from the Conduct WG (last friday), the Steering Council has decided to ban Marco Sulla from all Core Developer spaces for at least a year. (For the record, Brett abstained from voting on this issue.) We also

[Python-Dev] Re: PEP 667: Consistent views of namespaces

2021-08-24 Thread MRAB
On 2021-08-24 17:55, Patrick Reader wrote: On 24/08/2021 06:27, Steven D'Aprano wrote: Wouldn't that attempt to resolve global y, rather than local y? Unless there is a change to the current behaviour of the compiler, I think you need to fool the compiler: if False: y = 0 # anywhere

[Python-Dev] Re: PEP 667: Consistent views of namespaces

2021-08-24 Thread Patrick Reader
On 24/08/2021 06:27, Steven D'Aprano wrote: > Wouldn't that attempt to resolve global y, rather than local y? Unless > there is a change to the current behaviour of the compiler, I think you > need to fool the compiler: > >if False: y = 0 # anywhere inside the function is okay Time to

[Python-Dev] Stable ABI – PEP 667: Consistent views of namespaces

2021-08-24 Thread Petr Viktorin
On 23. 08. 21 5:07, Guido van Rossum wrote: On Sat, Aug 21, 2021 at 8:52 PM Nick Coghlan > wrote: [...] Code that uses PyEval_GetLocals() will NOT continue to operate safely under PEP 667: all such code will raise an exception at runtime, and need to be