According to wikipedia, the .ini file format requires a line to start with # or ; to be considered a comment.

python's ConfigParser has an implementation that allows # in special cases to indicate a comment, but never ;