Exception HierarchyCan catch general categories of errors
try:
statements
except LookupError,e:
# Handle IndexError or KeyError
|
| <<< | O'Reilly OSCON 2000, Introduction to Python, Slide 74 July 17, 2000, beazley@cs.uchicago.edu |
>>> |