Ernesto <[EMAIL PROTECTED]> wrote:
> how do you self terminate a python program from within the code?
> something similar to exit(0) in C.

Inspection and control of the Python runtime system is mostly within
the 'sys' module.

    <URL:http://docs.python.org/lib/module-sys.html>

In this case, 'import sys; help(sys.exit)' will be of assistance.

-- 
 \            "I always had a repulsive need to be something more than |
  `\                                           human."  -- David Bowie |
_o__)                                                                  |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to