Python Forum
"Limit all lines to a maximum of 79 characters"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Limit all lines to a maximum of 79 characters"
#9
I do put effort into keeping code to a certain length, but I use 108 characters instead. Lines that are too long can be hard to understand, so I just use it as a guide for when I should break a line up to make it more readable. But I think 79 is too few characters, especially with indentation being a part of the language. I mean, in a class method with a loop and a conditional, you are now down to 63 characters. And that just encourages short variable names, making the code less readable. So there's a bit of balance there.

Guido has also said that PEP 8 was never meant to be the coding style for everything written in Python. It was just meant for the standard library, and isn't even followed rigorously there (I'm looking at you, unittest).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: "Limit all lines to a maximum of 79 characters" - by ichabod801 - Jun-19-2019, 03:57 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020