strange behaviour with decorators.

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Wed Feb 9 17:04:19 EST 2005


Antoon Pardon wrote:

> Ah, yes, the penny dropped. The try: except where there because
> originally there were other statements I wanted to test and I
> didn't want the raise exception by the inc(-2) stop the script.
> I completely forget to consider it would also catch the
> error I was expecting.

A very good example of why you should (almost) never use a bare except:
...

Tim Delaney



More information about the Python-list mailing list