In defence of 80-char lines

llanitedave llanitedave at veawb.coop
Thu Apr 4 00:32:33 EDT 2013


I also tend to prefer a maximum between 110 and 120 characters.  I find continuation lines confusing, and when you use some third-party tools, such as wxPython, for example, the boilerplate code leads to some long lines.

I would hate to have to break up this line, for instance:

self.mainLabel.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, faceName = "FreeSans"))

Especially if it's already indented a few levels to begin with.

With most of your code in classes, you already got most of it indented two levels right off the bat.



More information about the Python-list mailing list