multiline comments
Ben Finney
bignose+hates-spam at benfinney.id.au
Wed Apr 19 01:10:27 EDT 2006
James Stroud <jstroud at ucla.edu> writes:
> Edward Elliott wrote:
> > At the risk of flogging a dead horse, I'm wondering why Python
> > doesn't have any multiline comments. [...]
> >
> > Using an editor to throw #s in front of every line has
> > limitations. Your editor has to support it and you have to know
> > how to use that feature. Not exactly intuitive or easy for
> > novices to pick up. Also a pain if your preferred editor is
> > python/perl/sh-agnostic.
>
> I think the absence of multiline comments is like the requirement
> for indentation. It enforces good habits. Better is to make your
> multiple lines a function and comment out the function call.
And/or switch to an editor that can perform editing operations on a
range of lines.
--
\ Q: "I've heard that Linux causes cancer..." Torvalds: "That's |
`\ a filthy lie. Besides, it was only in rats and has not been |
_o__) reproduced in humans." -- Linus Torvalds |
Ben Finney
More information about the Python-list
mailing list