raising SyntaxError while parsing file?

Roy Smith roy at panix.com
Sat Sep 1 03:30:46 CEST 2001

I've got a class which parses a data file, and I want to be able to signal 
a parse error.  Would it be appropriate to raise SyntaxError for that, or 
is SyntaxError really reserved for errors in the python code itself?

More information about the Python-list mailing list