Python's driving me mad. Invalid token?
Dennis Lee Bieber
wlfraed at ix.netcom.com
Fri Oct 18 21:42:38 EDT 2002
Jim fed this fish to the penguins on Thursday 17 October 2002 11:37 pm:
>
> destFile = open((dirname+"""\"""+name),'w')
Very simple problem if you look at it in a syntax color-coded editor.
I just loaded the file in vi under Linux and the coloring showed it
right off...
Mismatched " marker... \" is an escape character, the tokens are:
"""
\"
"" <= it sees two ", so the opening triple " is still open!
--
--
> ============================================================== <
> wlfraed at ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
> wulfraed at dm.net | Bestiaria Support Staff <
> ============================================================== <
> Bestiaria Home Page: http://www.beastie.dm.net/ <
> Home Page: http://www.dm.net/~wulfraed/ <
More information about the Python-list
mailing list