Syntax Error at end of file

Greg Ewing see_reply_address at something.invalid
Thu Jul 4 20:53:53 EDT 2002


Skip Montanaro wrote:

> In a similar thread which occurred just a few days ago it was observed (by
> Tim Peters, I think) that the set of acceptable characters at any particular
> point in the parse is big, so enumerating them in the error message would be
> counterproductive and would just serve to confuse the issue in most cases.


But in the case of an unclosed triple quote, the scanner
surely knows (or could remember) where the beginning
of it was!

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list