Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68574 > unrolled thread

Re: Decorator

Started byDave Angel <davea@davea.name>
First post2014-03-20 07:00 -0400
Last post2014-03-20 07:00 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Decorator Dave Angel <davea@davea.name> - 2014-03-20 07:00 -0400

#68574 — Re: Decorator

FromDave Angel <davea@davea.name>
Date2014-03-20 07:00 -0400
SubjectRe: Decorator
Message-ID<mailman.8297.1395312977.18130.python-list@python.org>
 Peter Otten <__peter__@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web