The Samurai Principle

Steven D'Aprano steve at
Wed Sep 8 16:21:11 CEST 2010

On Tue, 07 Sep 2010 20:35:45 -0700, Phlip wrote:

> Exceptions are very dangerous by themselves, because if you don't trap
> them just right they can cause side-effects.


If you don't trap them just right, the cause a stack trace, which is a 
side-effect I suppose. But it's an *intended* side-effect, since the 
alternative would be a core dump (or worse, an incorrect program that 
*doesn't* crash). This is a good thing!


More information about the Python-list mailing list