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 ,
>
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