Case Sensitive, Multiline Comments

Paul McNett p at ulmcnett.com
Thu May 26 17:40:25 EDT 2005


Mike Meyer wrote:
> "Elliot Temple" <curi42 at gmail.com> writes:
>> Also, why aren't there
>>multiline comments?  Would adding them cause a problem of some sort?
> 
> Because no one every really asked for them. After all, there are two
> formats for multi-line strings, which the interpreter will build and
> then discard. There are tools that recognize multi-line strings after
> function/method definitions and treat them as function documentation.
> 
> Adding multiline comments probably wouldn't be a problem - you'd just
> have to come up with an introductory character sequence that can't
> occur in the language (not that that stopped C). But you'd have to get
> someone to write the code, then someone with commit privs to decide it
> was useful enough to commit. That seems to be a lot of work for very
> little gain.

Don't we already have multi-line comments in the form of string literals?

-- 
Paul McNett
http://paulmcnett.com




More information about the Python-list mailing list