|
|
|||
File indexing completed on 2025-11-19 09:50:53
0001 // Error codes passed around between file input, tokenizer, parser and 0002 // interpreter. This is necessary so we can turn them into Python 0003 // exceptions at a higher level. Note that some errors have a 0004 // slightly different meaning when passed from the tokenizer to the 0005 // parser than when passed from the parser to the interpreter; e.g. 0006 // the parser only returns E_EOF when it hits EOF immediately, and it 0007 // never returns E_OK. 0008 // 0009 // The public PyRun_InteractiveOneObjectEx() function can return E_EOF, 0010 // same as its variants: 0011 // 0012 // * PyRun_InteractiveOneObject() 0013 // * PyRun_InteractiveOneFlags() 0014 // * PyRun_InteractiveOne() 0015 0016 #ifndef Py_ERRCODE_H 0017 #define Py_ERRCODE_H 0018 #ifdef __cplusplus 0019 extern "C" { 0020 #endif 0021 0022 #define E_OK 10 /* No error */ 0023 #define E_EOF 11 /* End Of File */ 0024 #define E_INTR 12 /* Interrupted */ 0025 #define E_TOKEN 13 /* Bad token */ 0026 #define E_SYNTAX 14 /* Syntax error */ 0027 #define E_NOMEM 15 /* Ran out of memory */ 0028 #define E_DONE 16 /* Parsing complete */ 0029 #define E_ERROR 17 /* Execution error */ 0030 #define E_TABSPACE 18 /* Inconsistent mixing of tabs and spaces */ 0031 #define E_OVERFLOW 19 /* Node had too many children */ 0032 #define E_TOODEEP 20 /* Too many indentation levels */ 0033 #define E_DEDENT 21 /* No matching outer block for dedent */ 0034 #define E_DECODE 22 /* Error in decoding into Unicode */ 0035 #define E_EOFS 23 /* EOF in triple-quoted string */ 0036 #define E_EOLS 24 /* EOL in single-quoted string */ 0037 #define E_LINECONT 25 /* Unexpected characters after a line continuation */ 0038 #define E_BADSINGLE 27 /* Ill-formed single statement input */ 0039 #define E_INTERACT_STOP 28 /* Interactive mode stopped tokenization */ 0040 #define E_COLUMNOVERFLOW 29 /* Column offset overflow */ 0041 0042 #ifdef __cplusplus 0043 } 0044 #endif 0045 #endif /* !Py_ERRCODE_H */
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|