stopiteration raised to signal the end of iteration this normally happens in the next(method of an object or in generator function syntaxerror parser syntax error instances have the attributes filenamelinenooffsetand textwhich can be used to gather more information systemerror internal error in the interpreter the value is string indicating the problem systemexit raised by the sys exit(function the value is an integer indicating the return code if it' necessary to exit immediatelyos _exit(can be used taberror inconsistent tab usage generated when python is run with the -tt option subclass of syntaxerror typeerror occurs when an operation or function is applied to an object of an inappropriate type unboundlocalerror unbound local variable referenced this error occurs if variable is referenced before it' defined in function subclass of nameerror unicodeerror unicode encoding or decoding error subclass of valueerror unicodeencodeerror unicode encoding error subclass of unicodeerror unicodedecodeerror unicode decoding error subclass of unicodeerror unicodetranslateerror unicode error occurred during translation subclass of unicodeerror valueerror generated when the argument to function or an operation is the right type but an inappropriate value windowserror generated by failed system calls on windows subclass of oserror zerodivisionerror dividing by zero subclass of arithmeticerror lib fl ff