In defence of 80-char lines

gregor gregor at ediwo.com
Thu Apr 4 02:40:56 EDT 2013


Am Wed, 3 Apr 2013 21:32:33 -0700 (PDT)
schrieb llanitedave <llanitedave at veawb.coop>:

> 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"))

I think this is much more readable:

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

Emacs for example does this indentation with the TAB key automatically.

--
Greg                                     




More information about the Python-list mailing list