Message5764

Author hongdatang
Recipients hongdatang
Date 2010-05-09.22:57:03
SpamBayes Score 0.086854346
Marked as misclassified No
Message-id <1273445824.91.0.646022675249.issue1609@psf.upfronthosting.co.za>
In-reply-to
Content
If you try to enter following code in the jython shell, you would receive error message, "SyntaxError: mismatched input '<EOF>' expecting CLASS".

def entryExit(f):
    def new_f():
        print "Entering", f.__name__
        f()
        print "Exited", f.__name__
    return new_f

@entryExit
def func1():
    print "inside func1()"
History
Date User Action Args
2010-05-09 22:57:05hongdatangsetrecipients: + hongdatang
2010-05-09 22:57:04hongdatangsetmessageid: <1273445824.91.0.646022675249.issue1609@psf.upfronthosting.co.za>
2010-05-09 22:57:04hongdatanglinkissue1609 messages
2010-05-09 22:57:03hongdatangcreate