Kent Johnson wrote: [..]
Why not just return the value from the function and pass it up the call chain? If a call fails return None. Something like this:
That's what I ended up doing but the first thing occurred to me and I was just wondering if there's any production code that relies on the technique.
-- ~noufal http://nibrahim.net.in/ _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor