[Python-Dev] Sorry. No Release.

Greg Stein gstein@lyra.org
Mon, 3 Jul 2000 16:20:43 -0700


On Mon, Jul 03, 2000 at 06:58:22PM -0400, Fred L. Drake, Jr. wrote:
> 
> Ka-Ping Yee writes:
>  > But what i'd really like is an IndentationError that shows
>  > up whenever there's an indentation problem.
> 
>   That's what I think of when I hear "IndentationError" -- TabError is
> a specialized case of that.
>   I think the general IndentationError will be hard to do, since many
> cases are just another parse error by the time they can be turned into
> exceptions.  Unless I'm misreading that code.

Speaking out of my butt here, without looking at code, I would suspect that
the parser can return specializations "syntax error" to indicate that a
problem with indentation occurred.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/