ABSTRACT

An exception can be defined as an unusual condition, resulting in the interruption in the flow of the program. Whenever an exception occurs, the program stops execution, and thus any further code is not executed. Therefore, an exception is a run-time error due to inability to handle Python script. Python provides a way to handle the exception so that the code can be executed without any interruption. The authors discuss the treatment of exceptions in Python, the CGI concept, cookies, databases, transaction concepts, multi-threaded programming and networking.