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> -- http://mail.python.org/mailman/listinfo/python-list