robert.t.ly...@seagate.com wrote:

In a python program I ask if the user wants to continue. If they answer 'no', what options do I have to halt execution? I can put the rest of the code inside an "if bContinue:" block, but that seems awkward. I have looked at raising an exception, and perhaps this is the preferred method, but it seems daunting to my non-OOP eyes. Thanks -- Rob

What is the overall structure of the program? What happens if the user
wants to continue? If you're in a loop then you can just use 'break' to
leave the loop.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to