Case Sensitive, Multiline Comments

John Roth newsgroups at jhrothjr.com
Thu May 26 21:04:19 EDT 2005


"Elliot Temple" <curi42 at gmail.com> wrote in message 
news:1117137316.140791.210430 at g14g2000cwa.googlegroups.com...
> Hi I have two questions.

...


> Also, why aren't there
> multiline comments?  Would adding them cause a problem of some sort?

As a matter of fact, yes. First, consider that as soon as you have
multi-line comments, someone is going to request nested multi-line
comments. (In other words, the compiler should check that the
embedded  comment is still correct.) That rapidly leads to madness.

Second, multi-line comments aren't really necessary; as someone
in the thread  commented, a decent editor or IDE will allow adding
or removing comments from a block of code easily. Python's
philosophy is to only add features when there is a use case that
will improve the language significantly, and commenting out a block
of code for testing isn't it. (It's also not the world's best practice,
but that's another subject.)

John Roth




>
> Thanks,
> Elliot
> 




More information about the Python-list mailing list