Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 12970:63436719d12e legacy-trunk
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."
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Tue, 20 Jun 2000 19:10:44 +0000 |
| parents | 5213abfe5230 |
| children | 916fb024ce94 |
comparison
equal
deleted
inserted
replaced
| 12969:e6b407ba4715 | 12970:63436719d12e |
|---|---|
| 1031 msg = "unexpected EOF while parsing"; | 1031 msg = "unexpected EOF while parsing"; |
| 1032 break; | 1032 break; |
| 1033 case E_INDENT: | 1033 case E_INDENT: |
| 1034 msg = "inconsistent use of tabs and spaces in indentation"; | 1034 msg = "inconsistent use of tabs and spaces in indentation"; |
| 1035 break; | 1035 break; |
| 1036 case E_OVERFLOW: | |
| 1037 msg = "expression too long"; | |
| 1038 break; | |
| 1036 default: | 1039 default: |
| 1037 fprintf(stderr, "error=%d\n", err->error); | 1040 fprintf(stderr, "error=%d\n", err->error); |
| 1038 msg = "unknown parsing error"; | 1041 msg = "unknown parsing error"; |
| 1039 break; | 1042 break; |
| 1040 } | 1043 } |
