mirror of
https://github.com/python/cpython.git
synced 2025-07-13 22:35:18 +00:00
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."
This commit is contained in:
parent
56c807d318
commit
94988067b9
5 changed files with 28 additions and 18 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue