Allowing comments after the line continuation backslash
Neil Cerutti
neilc at norwich.edu
Wed Nov 3 08:42:49 EDT 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
Victorian.
--
Neil Cerutti
More information about the Python-list
mailing list