[Python-Dev] Sorry. No Release.

Eric S. Raymond esr@thyrsus.com
Mon, 3 Jul 2000 05:20:52 -0400


Fred L. Drake, Jr. <fdrake@beopen.com>:
> 
> Skip Montanaro wrote:
>  > My guess is that -tt triggered a SyntaxError (maybe we should create an
>  > IndentationError that is a subclass of SyntaxError?) 
> 
> Paul Prescod writes:
>  > +1
>  > 
>  > That would be great for newbies!
> 
>   Yes, but the name is confusing, because it isn't raised for every
> sort of indentation error if it's only used for tab/space problems:
> 
> try:
>     1/0
>         1/0
> finally:
>     pass
> 
> still would raise SyntaxError.  Should that raise an IndentationError
> as well?  Or should IndentationError be named something else?

WhitespaceError
-- 
		<a href="http://www.tuxedo.org/~esr">Eric S. Raymond</a>

Morality is always the product of terror; its chains and
strait-waistcoats are fashioned by those who dare not trust others,
because they dare not trust themselves, to walk in liberty.
	-- Aldous Huxley