Syntax Error at end of file
Skip Montanaro
skip at pobox.com
Sat Jul 6 12:58:40 EDT 2002
Skip> In a similar thread which occurred just a few days ago it was
Skip> observed (by Tim Peters, I think) that the set of acceptable
Skip> characters at any particular point in the parse is big, so
Skip> enumerating them in the error message would be counterproductive
Skip> and would just serve to confuse the issue in most cases.
Greg> But in the case of an unclosed triple quote, the scanner surely
Greg> knows (or could remember) where the beginning of it was!
True enough. I was responding to what I thought was a general request.
I patched the scanner to distinguish EOF during triple-quoted string
scanning and EOL during single-quoted string scanning. I'll apply them to
the CVS source when I have a better Internet connection.
Skip
More information about the Python-list
mailing list