[program-l] Re: Python Coding Style About Using Blank Lines Question

  • From: <kperry@xxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 11 Nov 2022 16:07:46 -0500

Just so you know the Pep8 standards says

 

2 lines before and after main level def

1 lines before and after class defs

2 lines before class declerations

 

From: program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> On
Behalf Of Jim Homme
Sent: Friday, November 11, 2022 2:44 PM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Python Coding Style About Using Blank Lines Question

 

Hi,

So far I have only written Python mostly for my own use. This is why I'm
asking this. I tend to put blank lines between functions, loops, and if
statement blocks. Is this accepted style?

 

Thanks.

 

Jim

 

==========

Jim Homme

Senior Digital Accessibility Consultant

Bender Consulting Services

412-787-8567

https://www.benderconsult.com/

Support the dreams of independence through employment for students with
disabilities with your Amazon purchases.

https://smile.amazon.com/ch/83-0988251

 

Other related posts: