Allowing comments after the line continuation backslash
neilc at norwich.edu
Wed Nov 3 13:42:49 CET 2010
On 2010-11-03, Ben Finney <ben+python at benfinney.id.au> wrote:
> I would do the same, but fix the indentation. Making
> indentation depend on the *length* of the previous line is
> needlessly making a maintenance burden.
> Instead, I'd do::
> styles = [
> ("normal", "image", MainWindow.ColorsNormalList),
> ("highlighted", "highlight", MainWindow.ColorsHighlightedList),
> ("selected", "select", MainWindow.ColorsSelectedList)]
Agreed, except cute stuff like putting those three items in
columns is just as bad.
Code should be utilitarian rather than ornate, Shaker rather than
More information about the Python-list