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
Mon Oct 11 12:46:20 CEST 2010

In message <pan.2010. at nowhere.com>, Nobody wrote:

> If I'm catching exceptions in order to perform clean-up, I'll use a bare
> except and re-raise the exception afterwards. In that situation, a bare
> except is usually the right thing to do.

Wrong way to do it.

More information about the Python-list mailing list