Halt, stop, quit, exit?

Peter Hansen peter at engcorp.com
Tue Oct 14 10:15:49 EDT 2003


Simon Faulkner wrote:
> 
> Does Python have a command that just stops all processing?

Do you want to clean up open file handles and such, including
properly freeing up any held resources, before terminating
the application?  Or are you looking for the ugliest, dirtiest,
fastest way out, regardless of the damage it might cause?

Choose between sys.exit() or os._exit() as needed.

-Peter




More information about the Python-list mailing list