Skip to main content

Posts

Showing posts with the label Python Cheatsheet

All about PYTHON 3

List of built-in exceptions in Python 3. Base Classes These exceptions are generally used as base classes for other exceptions. Exception Description BaseException The base class for all built-in exceptions. It is not meant to be directly inherited by user-defined classes (for that, use  Exception  below). Exception All built-in, non-system-exiting exceptions are derived from this class. All user-defined exceptions should also be derived from this class. ArithmeticError The base class for built-in exceptions that are raised for various arithmetic errors. These are:  OverflowError ,  ZeroDivisionError ,  FloatingPointError . BufferError Raised when a buffer related operation cannot be performed. LookupError The base class for exceptions that are raised when a key or index used on a mapping or sequence is invalid. These are:  IndexError  and  KeyError . Concrete Exceptions These are the exceptions that are usually raised. Exception Description Asser...