decorators question

Soni Bergraj sonibergraj at youjoy.org
Mon Dec 4 14:46:12 EST 2006


There was a copy-and-paste error with my last message. Better try this
for foobar.py:

def foo(f):
    print "called foo"
    return 'some text'
@foo
def bar():
    print "called bar"


-- 
Soni Bergraj
http://www.YouJoy.org/



More information about the Python-list mailing list