A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-February/012901.html below:

[Python-Dev] SyntaxError for illegal literals

[Python-Dev] SyntaxError for illegal literals [Python-Dev] SyntaxError for illegal literalsKa-Ping Yee ping@lfw.org
Wed, 14 Feb 2001 03:36:54 -0800 (PST)
On Wed, 14 Feb 2001, Greg Ewing wrote:
> How about introducing the following hierarchy:
> 
>   CompileTimeError
>     SyntaxError
>     LiteralRangeError
> 
> LiteralRangeError could inherit from ValueError as well
> if you want.

I suppose that's all right, and i wouldn't complain, but i don't
think it's all that necessary either.  Compile-time errors *are*
syntax errors.  What else could they be?  (Aside from fatal
errors or limitations of the compiler implementation, that is,
but again that's outside of the abstraction we're presenting to
the Python user.)

Think of it this way: if there's a problem with your Python program,
it's either a problem with *how* it expresses something (syntax), or
with *what* it expresses (semantics).  The syntactic errors occur
at compile-time and the semantic errors occur at run-time.


-- ?!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