[Tutor] functions: use return or exceptions?

Alex Hall mehgcap at gmail.com
Thu Sep 23 21:32:55 CEST 2010


Hi all,
A general coding question: is it better to use return(False) (or 0, or
-1, or whatever) or to raise whateverError("oops")? Are there cases
for each?

-- 
Have a great day,
Alex (msg sent from GMail website)
mehgcap at gmail.com; http://www.facebook.com/mehgcap


More information about the Tutor mailing list