A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.python.org/pipermail/python-dev/2000-July/006187.html below:

[Python-Dev] SyntaxError patches

[Python-Dev] SyntaxError patchesKa-Ping Yee ping@lfw.org
Tue, 11 Jul 2000 10:31:59 -0700 (PDT)
On Tue, 11 Jul 2000, Fred L. Drake, Jr. wrote:
> At one point, we were discussing having specializations of
> SyntaxError, and I posted a patch that defined IndentationError and
> TabError.

I guess the question is, will we ever want to catch or distinguish
just IndentationError or TabError exceptions in particular from
within a Python program?

I can't personally think of any situations where i would need more
detail than SyntaxError (whatever the error is, i'll just want to
say "syntax error" and show the message)... unless... should the
expected token type be passed *all* the way back to the user level
so that e.g. an IDE can provide a UI hint as to how to correct the
syntax error?


-- ?!ng




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4