Are you sure that you really want to exit the program, and not just
the loop?  Try googling python loop break" to see how to use the break
keyword.

John Cremona

On 5 March 2013 14:54, Jeroen Demeyer <jdeme...@cage.ugent.be> wrote:
> On 2013-03-05 13:49, GaryMak wrote:
>> Hi - IT's most hopeless victim weighing in here ....
>>
>> I too would like a civilised way of exiting a loop; however if I
>> implement os._exit(0) I get no output prior to the exit, no matter how
>> much "should" have been printed by then ...
>
> Use sys.exit(0) instead of os._exit(0). The latter should only be used
> if you really understand what it does.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to