But you could use a dict of return values, or even just assigning a different return value in each if clause. The end result is that you have a single well-defined exit point from the function, which is generally considered to be preferable.
-- http://mail.python.org/mailman/listinfo/python-list