exit a program gracefully
Robert.T.Lynch at seagate.com
Robert.T.Lynch at seagate.com
Mon May 4 18:02:13 EDT 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090504/e114f6ea/attachment.html>
More information about the Python-list
mailing list