anu bhaisab anu bhaisab - 9 months ago 38
Python Question

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

Answer Source

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

Some general info about exception handling.

Python Exception Handling Techniques