Re: decorator and wrap

2012-01-09 Thread Chris Rebert
Cheers, Chris -- http://rebertia.com On Mon, Jan 9, 2012 at 8:34 PM, contro opinion wrote: > > def deco(func): > def wrap(): > print 'i am in deco' > return func() > return wrap > > @deco > def test(): > print  "i am in test" > when you run it ,there is no result , >

decorator and wrap

2012-01-09 Thread contro opinion
def deco(func): def wrap(): print 'i am in deco' return func() return wrap @deco def test(): print "i am in test" when you run it ,there is no result , def deco(func): print 'i am in deco' return func() @deco def test(): print "i am in test" w