stop()/_quit()

Russell Blau russblau at hotmail.com
Fri May 14 16:06:11 EDT 2004


"Thomas Philips" <tkpmep at hotmail.com> wrote in message
news:b4a8ffb6.0405141158.29ffab63 at posting.google.com...
> NameError: global name '_quit' is not defined
>
> I've tried stop() instead of _quit(), with similar results. break does
> not do the job - it just breaks out of the innermost loop and the
> outer loops keep running. What's the fix?

Ummm, the error message might be a clue -- you could try *defining* _quit.

Or, you could use the standard library function sys.exit(), making sure you
import sys first.


-- 
I don't actually read my hotmail account, but you can replace hotmail with
excite if you really want to reach me.





More information about the Python-list mailing list