[Python-Dev] more SyntaxError subclasses!

David Ascher DavidA@ActiveState.com
Wed, 12 Jul 2000 09:32:43 -0700 (Pacific Daylight Time)

On Wed, 12 Jul 2000, Fredrik Lundh wrote:

> here are a bunch of other syntax error subclasses that
> might be useful:


> (I'm extra interested in arguments from people who think TabError
> and IndentationError is a good idea, but that this one sucks.  I'm
> not sure I want to hear from people who thinks that this one is a
> great idea ;-)

Sorry. =)

> on a more serious note, I think it would be great to add a distinct
> attribute to the SyntaxError instance (an error number, most likely).
> this could be used by an IDE to provide concise info without having
> to parse the error message.