From 6b4bce1725d605032877ae15b74046bee49fa1ed Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Tue, 20 Jun 2000 19:10:44 +0000 Subject: 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." --- Python/pythonrun.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 7760714654..3a60e47246 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"; -- cgit v1.2.1