Single Pound # comments versus Double Pound ## comments
Sean 'Shaleh' Perry
shalehperry at attbi.com
Fri Oct 4 15:34:51 EDT 2002
On Friday 04 October 2002 12:12, Manuel M. Garcia wrote:
> In Python code, does anyone distinguish between starting comments with
> a single pound (#) or a double pound (##)?
> ActivePython colorizes them differently (# - green, ## - gray), and
> not understanding the distinction implied is bugging me.
My guess is it sees ## as "I am commenting out this block of code
temporarily". I have also seen people use ## for block comments above a
function or tricky piece of code.
More information about the Python-list
mailing list