Decorator

Dave Angel davea at davea.name
Thu Mar 20 07:00:44 EDT 2014


 Peter Otten <__peter__ at web.de> Wrote in message:

> 
> In your code change 
> 
> fib1 = isOddMy(fib)
> 
> to
> 
> fib = isOddMy(fib)
> 
> and the without@ version will produce the same output as the with@ version.
> 
> 

I expect that one more thing is needed,  since the above is inside
 a function:

     global fib
     fib = isOdd (fib)

-- 
DaveA




More information about the Python-list mailing list