Re: strange behaviour with decorators.

2005-02-10 Thread Antoon Pardon
Op 2005-02-09, Delaney, Timothy C (Timothy) schreef <[EMAIL PROTECTED]>: > 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. >>

RE: strange behaviour with decorators.

2005-02-09 Thread Delaney, Timothy C (Timothy)
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

Re: strange behaviour with decorators.

2005-02-09 Thread Antoon Pardon
Op 2005-02-09, Diez B. Roggisch schreef <[EMAIL PROTECTED]>: >> Now although this behaviour was surprising after somethought >> I think I may understand why things go wrong, but I certainly >> don't understand the result I got. I would think an error like: >> >> TypeError: call() takes exactly 2 a

Re: strange behaviour with decorators.

2005-02-09 Thread Diez B. Roggisch
> Now although this behaviour was surprising after somethought > I think I may understand why things go wrong, but I certainly > don't understand the result I got. I would think an error like: > > TypeError: call() takes exactly 2 arguments (1 given) > > would have been more appropiate. > > > A