[Tutor] exit message

Amit Saha amitsaha.in at gmail.com
Mon May 6 07:04:29 CEST 2013


On Mon, May 6, 2013 at 2:56 PM, Jim Mooney <cybervigilante at gmail.com> wrote:
>> Something like this?
>>
>>>> import sys
>>>>> while 1:
>> ...     sys.exit('Exiting from Infinite Loop')
>> ...
>> Exiting from Infinite Loop
>
> I still get a traceback message from the console. I just want a clean
> exit without that. I have a feeling I'm thinking about something the
> wrong way ;')
>
> Traceback (most recent call last):
>   File "c:\Python33\Progs\fileActions.py", line 17, in <module>
> builtins.SystemExit: you messed up too many times

Strange. Can you share some relevant code that can be executed?



--
http://echorand.me


More information about the Tutor mailing list