A case for "real" multiline comments

Devin Jeanpierre jeanpierreda at gmail.com
Thu Apr 19 01:08:36 EDT 2012


On Thu, Apr 19, 2012 at 12:29 AM, Cameron Simpson <cs at zip.com.au> wrote:
> I'd just do this:
>
>  list = [
>  Object1(arg),
>  ## Object2(arg),
>  ## Object3(arg),
>  Object4(arg)
>  ]
>
> Multiple lines of single line comments. Frankly, I find this much easier
> to see (all the disabled lines are delineated with nice bright comment
> markers, and the beginning and end of the comment (were it a multiline
> comment) can't disappear off my screen.

My text editor just greys it out either way, so I don't get this
readability argument. Does anyone use an editor that doesn't highlight
comments appropriately?

Fortunately, my editor can insert single-line comments in bulk, so
multi-line comments aren't a big deal to me. I don't really get why
Python doesn't have them, though.

> I would say you've made a case _against_ multiline coments.

Could you explain how?

-- Devin



More information about the Python-list mailing list