"Jorge Godoy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > rx wrote: > >> I don't understand the problem - why should comments (and I hope you >> believe there should be a one line comment at least) be restricted to one >> line. It doesn't work that way for if, while, for. > > It is the minimum case that can solve a problem commenting one line -- or > part of it as in "print '3' # print the number 3" -- or commenting > multiple > lines. It is also easier to deal with since you don't have to end your > comment all the time. > > For "if", "while", "for", etc. you have ":" and the indentation. You > don't > have an "endif", "endwhile", "endfor" (so, why having an "end comment"?). > > -- > Jorge Godoy <[EMAIL PROTECTED]> >
There no reason why a multiple line comment couldn't be indented (then the indentation is the end of comment in some sense), but I don't find that logical - after all its my comment and I don't want python to tell me how to indent it. -- http://mail.python.org/mailman/listinfo/python-list