Decorator
Peter Otten
__peter__ at web.de
Thu Mar 20 09:04:33 EDT 2014
Dave Angel wrote:
> 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)
Yes, sorry, I missed that.
More information about the Python-list
mailing list