The Python Oracle

Extract traceback info from an exception object

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Future Grid Looping

--

Chapters
00:00 Question
00:29 Accepted answer (Score 125)
03:39 Answer 2 (Score 103)
04:38 Answer 3 (Score 81)
05:04 Answer 4 (Score 45)
05:50 Thank you

--

Full question
https://stackoverflow.com/questions/1141...

Accepted answer links:
[raise]: https://docs.python.org/3/reference/simp...
[first posted this information]: https://stackoverflow.com/a/14564261/577...
[that have references to...]: https://www.python.org/dev/peps/pep-0344...
[ecatmur]: https://stackoverflow.com/a/11417308/577...
[break the cycle]: https://www.python.org/dev/peps/pep-3110...
[sys.exc_info()]: http://docs.python.org/library/sys.html#...
[traceback]: http://docs.python.org/library/traceback...
[inspect]: http://docs.python.org/library/inspect.h...
[custom exception]: http://docs.python.org/tutorial/errors.h...

Answer 2 links:
[Python 3.0]: http://www.python.org/dev/peps/pep-3109/
[Exception]: http://docs.python.org/3.2/tutorial/erro...
[Googling ]: https://www.google.com/search?h
[Python 3 documentation for ]: http://docs.python.org/3/reference/simpl...

Answer 3 links:
[traceback.format_tb(...)]: https://docs.python.org/3/library/traceb...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #debugging #exceptionhandling

#avk47