diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-06-20 19:10:44 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-06-20 19:10:44 (GMT) |
commit | 94988067b96c6187fd940eaff99c2c5a68daac68 (patch) | |
tree | 681d7a64160eeab1ece2685bb234971d404ef0a6 /Python/pythonrun.c | |
parent | 56c807d318954222bb67167477d98eafb6b85d81 (diff) | |
download | cpython-94988067b96c6187fd940eaff99c2c5a68daac68.zip cpython-94988067b96c6187fd940eaff99c2c5a68daac68.tar.gz cpython-94988067b96c6187fd940eaff99c2c5a68daac68.tar.bz2 |
Add new parser error code, E_OVERFLOW. This error is returned when
the number of children of a node exceeds the max possible value for
the short that is used to count them. The Python runtime converts
this parser error into the SyntaxError "expression too long."
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 7760714..3a60e47 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1033,6 +1033,9 @@ err_input(err) case E_INDENT: msg = "inconsistent use of tabs and spaces in indentation"; break; + case E_OVERFLOW: + msg = "expression too long"; + break; default: fprintf(stderr, "error=%d\n", err->error); msg = "unknown parsing error"; |