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

2021-08-26 Thread Christopher Barker
Thanks all. The PR is in process, and I believe it includes everything brought up here. If you have any more thoughts, please post them there. -CHB On Thu, Aug 26, 2021 at 1:54 AM Petr Viktorin wrote: > On 26. 08. 21 9:54, Marc-Andre Lemburg wrote: > > On 26.08.2021 06:07, Christopher Barker

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

2021-08-26 Thread Stephen J. Turnbull
Marc-Andre Lemburg writes: > On 26.08.2021 06:07, Christopher Barker wrote: > > But now a question -- the current text reads: > > > > "Code in the core Python distribution should always use UTF-8" > > "The following policy is prescribed for the standard library > > ... In addition, string

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

2021-08-26 Thread Stephen J. Turnbull
Christopher Barker writes: > PR here: Thanks for your prompt efforts! The notes toward a "near future" agenda are above and beyond. > Interesting some of the cruft in there e.g. still referring to "new style > classes" :-) I think that should also come out "now", but that's a +1 to the

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

2021-08-26 Thread Petr Viktorin
On 26. 08. 21 9:54, Marc-Andre Lemburg wrote: On 26.08.2021 06:07, Christopher Barker wrote: I'm working on a PR now. It seems there is little support for keeping the python2 content in the docs, so I'm re-writing it as though it was never there. If someone wants to add a note about Python 2,

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

2021-08-26 Thread Marc-Andre Lemburg
On 26.08.2021 06:07, Christopher Barker wrote: > I'm working on a PR now. It seems there is little support for keeping the > python2 content in the docs, so I'm re-writing it as though it was never > there. > If someone wants to add a note about Python 2, of course that can be added > later. >

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

2021-08-26 Thread Abdur-Rahmaan Janhangeer
Greetings, What about stating the version on each PEP8 file? Like the docs always refer to a version of Python Better, each version of Python can have it's PEP8 guide as language features added require style guidelines. Kind Regards, Abdur-Rahmaan Janhangeer about

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

2021-08-25 Thread Christopher Barker
OK, PR here: https://github.com/python/peps/pull/2059 Interesting some of the cruft in there e.g. still referring to "new style classes" :-) I'll leave it to the PEP editors to decide about a note about Python 2. -CHB On Wed, Aug 25, 2021 at 10:28 PM Stephen J. Turnbull <

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

2021-08-25 Thread Stephen J. Turnbull
Terry Reedy writes: > We could add (perhaps at the end of the first paragraph) something like > "(Since the 2.x stdlib is frozen, all 2.x-specific guidelines were > removed in Sept 2021.)" Anyone interested could then check git log for > the last commit before then. How about including

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

2021-08-25 Thread Christopher Barker
I'm working on a PR now. It seems there is little support for keeping the python2 content in the docs, so I'm re-writing it as though it was never there. If someone wants to add a note about Python 2, of course that can be added later. Note that "moving the Python 2 content to a section at the

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

2021-08-25 Thread Terry Reedy
On 8/25/2021 6:48 PM, Steve Holden wrote: I suspect it's the same motivation that makes us comment out a block of code rather than deleting it, even though we know the VCS will let us retirive it whenever we want. If I'm wrong it won't be fatal. Or surprising ;-) Kind regards, Steve On

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

2021-08-25 Thread Steve Holden
I suspect it's the same motivation that makes us comment out a block of code rather than deleting it, even though we know the VCS will let us retirive it whenever we want. If I'm wrong it won't be fatal. Or surprising ;-) Kind regards, Steve On Wed, Aug 25, 2021 at 8:53 PM Eric V. Smith wrote:

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

2021-08-25 Thread Eric V. Smith
I think we’re better off removing them. 2.7 is completely unsupported by us. Why do you think they should still be kept? -- Eric > On Aug 25, 2021, at 1:32 PM, Mike Miller wrote: > >  > How about moving Python 2 notes into a section at the bottom? > > > -Mike >

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

2021-08-25 Thread Brett Cannon
On Wed, Aug 25, 2021 at 10:32 AM Mike Miller wrote: > > How about moving Python 2 notes into a section at the bottom? > I don't think that's useful. PEP 8 is still meant for the stdlib which is obviously not using Python 2, so it just becomes baggage. Plus if people want to refer to the old

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

2021-08-25 Thread Mike Miller
How about moving Python 2 notes into a section at the bottom? -Mike ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/

[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