Hello everyone,

Would it be considered unorthodox or 'wrong' in some sense for me to use an exception to unwind the stack and return to a caller for a recursive function?

I need to do a depth first search and when I find the right element to just stop the whole thing, and get back to the caller saying that I found it.


TIA.

--
~noufal
http://nibrahim.net.in/
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to