Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python traceback module for beginners

I am new to python and am finding it difficult to understand the official document for the traceback module http://docs.python.org/release/3.1.5/library/traceback.html

If someone could please guide me on how to extract the traceback paramenters ( offending line of code etc) , I would be very greatful.

I could also use some understanding on how traceback functions if there are two exceptions in the code , can we pass traceback for them both

like image 520
anu bhaisab Avatar asked Oct 09 '12 01:10

anu bhaisab


1 Answers

You can take a look at these tutorials that helped me out:

Some general info about exception handling.

Python Exception Handling Techniques

like image 124
Catalin Luta Avatar answered Sep 22 '22 19:09

Catalin Luta