Re: How do I handle #

2006-03-25 Thread Michael Sperlle
On Sat, 25 Mar 2006 07:06:59 +0100, Fredrik Lundh wrote: > 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 descri

Re: How do I handle #

2006-03-24 Thread Fredrik Lundh
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. Pytho

Re: How do I handle #

2006-03-24 Thread Irmen de Jong
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. > > I finally created a file containing the #, read it in, and used the > resulting variable as part of the string I created. >

Re: How do I handle #

2006-03-24 Thread Felipe Almeida Lessa
Em Sáb, 2006-03-25 às 00:46 +, Michael Sperlle escreveu: > 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. $ python Python 2.3.5 (#2, Mar 6 2006, 10:12:24) [GCC 4.0.3 20060304 (prerelease) (Debian

How do I handle #

2006-03-24 Thread Michael Sperlle
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. I finally created a file containing the #, read it in, and used the resulting variable as part of the string I created. But that is so kludgy, even a newb