## in python using notepad ++ syntax layout
In my editor (notepad ++) in Python script edit mode the line
## is this a special comment or what?
Rotates a different color (yellow) than normal #comment.
What's the special comment ## versus #comment?
From a Python perspective, there is no difference. However, Notepad ++ highlighter treats the ## sequence as STRINGEOL, so it paints it like that. See thread .
I thought the difference had something to do with usage:
#this is a code block header
against.
##this is a comment
I know Python doesn't care anyway, but I thought it was just a convention to do it this way.
In addition, in different situations :
A comment whose first line is a double hash:
This is used by doxygen and Fredrik Lundh PythonDoc. In doxygen, if text is on a double hash line, it is treated as a summary line. I don't like this convention because it seems too likely to lead to false positives. For example, if you comment out a region with a comment in it, you get a double hash.