table built-in exceptions exception description baseexception generatorexit keyboardinterrupt systemexit exception stopiteration standarderror arithmeticerror floatingpointerror zerodivisionerror assertionerror attributeerror environmenterror ioerror oserror eoferror importerror lookuperror indexerror keyerror memoryerror nameerror unboundlocalerror referenceerror runtimeerror notimplementederror syntaxerror indentationerror taberror systemerror typeerror valueerror unicodeerror unicodedecodeerror unicodeencodeerror unicodetranslateerror the root of all exceptions raised by close(method on generator generated by the interrupt key (usually ctrl+cprogram exit/termination base class for all non-exiting exceptions raised to stop iteration base for all built-in exceptions (python onlyin python all exceptions below are grouped under exception base for arithmetic exceptions failure of floating-point operation division or modulus operation with raised by the assert statement raised when an attribute name is invalid errors that occur externally to python / or file-related error operating system error raised when the end of the file is reached failure of the import statement indexing and key errors out-of-range sequence index nonexistent dictionary key out of memory failure to find local or global name unbound local variable weak reference used after referent destroyed generic catchall error unimplemented feature parsing error indentation error inconsistent tab usage (generated with -tt optionnonfatal system error in the interpreter passing an inappropriate type to an operation invalid type unicode error unicode decoding error unicode encoding error unicode translation error lib fl ff