How do I handle #
Fredrik Lundh
fredrik at pythonware.com
Sat Mar 25 01:06:59 EST 2006
Michael Sperlle wrote:
> I need to write out a file containing the # comment. When I try to specify
> it as part of a literal, everything afterward turns into a comment.
"turns into a comment" in what sense ? from your description, it sounds
like a bug in your editor's syntax highlighter. Python itself definitely won't
look for comment markers inside string literals.
</F>
More information about the Python-list
mailing list