The Python Oracle

Are nested try/except blocks in Python a good programming practice?

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: Light Drops

--

Chapters
00:00 Question
01:23 Accepted answer (Score 257)
02:07 Answer 2 (Score 26)
02:48 Answer 3 (Score 19)
03:07 Answer 4 (Score 15)
04:15 Thank you

--

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

Accepted answer links:
[EAFP]: https://docs.python.org/3/glossary.html#...

Answer 2 links:
[more here]: https://stackoverflow.com/questions/6092...
[duck typing]: http://docs.python.org/2/glossary.html#t...
[EAFP]: http://docs.python.org/2/glossary.html#t...
[lqc]: https://stackoverflow.com/users/324389/l...
[the suggested answer above]: https://stackoverflow.com/a/17015303/457...

--

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

--

Tags
#python

#avk47