I don't get why sys.exit(1) doesn't exit the while loop in the follow case

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Oct 5 03:26:16 EDT 2010


In message <slrnialg8v.28c5.usenet-nospam at guild.seebs.net>, Seebs wrote:

> On 2010-10-05, Lawrence D'Oliveiro <ldo at geek-central.gen.new_zealand>
> wrote:
>
>> In message <87iq1hz6rc.fsf at benfinney.id.au>, Ben Finney wrote:
>>
>>> Don't ever use a bare ‘except’ unless you know exactly why you're doing
>>> so.
>>
>> In other news, don’t ever put a loaded gun in your mouth and pull the 
>> trigger unless you know exactly why you’re doing so.
> 
> I don't think those are at all comparable, I've heard of people who had
> plausible arguments for the gun.

:)



More information about the Python-list mailing list