On 2012-11-20 10:48, LFS wrote:
How do you get sage out of a loop early?
How do you get sage to totally stop in the middle of a block?

Two ways have been mentioned; yet another is a custom Exception:

class IWantOut(Exception):
        pass

try:
        loop ...
                ...
                raise IWantOut
                ...
except IWantOut:
        respond to that condition

--
*\\*  Anton Sherwood  *\\*  www.bendwavy.org

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to