Built-in Exceptions

 FloatingPointError              IndexError                    
 OverflowError                   KeyError         
 ZeroDivisionError               MemoryError      
 AssertionError                  NameError        
 AttributeError                  RuntimeError     
 IOError                         SyntaxError      
 OSError                         SystemError      
 EOFError                        SystemExit       
 ImportError                     TypeError        
 KeyboardInterrupt               ValueError       
 
  • Contained in the 'exceptions' module.
  • The names are relatively straightforward.
  • Read docs for gory details about each one.
<<< O'Reilly OSCON 2000, Introduction to Python, Slide 70
July 17, 2000, beazley@cs.uchicago.edu
>>>