deimos.python.errcode

Mirror errcode.h

Error codes passed around between file input, tokenizer, parser and interpreter. This is necessary so we can turn them into Python exceptions at a higher level. Note that some errors have a slightly different meaning when passed from the tokenizer to the parser than when passed from the parser to the interpreter; e.g. the parser only returns E_EOF when it hits EOF immediately, and it never returns E_OK.

Members

Manifest constants

E_DECODE
enum E_DECODE;

Error in decoding into Unicode

E_DEDENT
enum E_DEDENT;

No matching outer block for dedent

E_DONE
enum E_DONE;

Parsing complete

E_EOF
enum E_EOF;

End Of File

E_EOFS
enum E_EOFS;

EOF in triple-quoted string

E_EOLS
enum E_EOLS;

EOL in single-quoted string

E_ERROR
enum E_ERROR;

Execution error

E_IDENTIFIER
enum E_IDENTIFIER;

Availability: >= 3.0

E_INTR
enum E_INTR;

Interrupted

E_LINECONT
enum E_LINECONT;

Unexpected characters after a line continuation

E_NOMEM
enum E_NOMEM;

Ran out of memory

E_OK
enum E_OK;

No error

E_OVERFLOW
enum E_OVERFLOW;

Node had too many children

E_SYNTAX
enum E_SYNTAX;

Syntax error

E_TABSPACE
enum E_TABSPACE;

Inconsistent mixing of tabs and spaces

E_TOKEN
enum E_TOKEN;

Bad token

E_TOODEEP
enum E_TOODEEP;

Too many indentation levels

Meta