The Python Oracle

Best practice in python for return value on error vs. success

This video explains
Best practice in python for return value on error vs. success

--

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: Lost Jungle Looping

--

Chapters
00:00 Question
01:17 Accepted answer (Score 73)
04:07 Answer 2 (Score 25)
05:09 Answer 3 (Score 16)
06:12 Answer 4 (Score 10)
06:31 Thank you

--

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

Answer 1 links:
[raise an exception]: http://en.wikibooks.org/wiki/Python_Prog...
[Find intersection of two nested lists?]: https://stackoverflow.com/questions/6427...

Answer 3 links:
[Exceptions vs. status returns]: http://nedbatchelder.com/text/exceptions...

--

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

--

Tags
#python #return

#avk47