On Mon, 2 Aug 2010 06:26:24 am Jason MacFiggen wrote:
> I was wondering how can I change sys.exit so if you use command line
> to run the program. it prompts a message asking if the user wants to
> exit instead of automatically just exiting?

Don't do that. Leave sys.exit alone, write your own quit() function that 
asks the user and then calls sys.exit if they say yes.


-- 
Steven D'Aprano
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to