raising SyntaxError while parsing file?

Roy Smith roy at panix.com
Fri Aug 31 21:30:46 EDT 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