I'm building an application with cherrypy and have started using
decorators quite extensively. A lot of my exposed functions look like:
@expose
@startTransactr ionAndBuildPage
@partOfTabUi(ta bId)
@convert(arg1=i nt, arg2=str)
def do_main_page(se lf, arg1, arg2):
some code
I've become really fond of decorators and use them quite a lot. I've
also ready that function calls are expensive in python. In the above
example, does the interpreter call 5 different functions?
decorators quite extensively. A lot of my exposed functions look like:
@expose
@startTransactr ionAndBuildPage
@partOfTabUi(ta bId)
@convert(arg1=i nt, arg2=str)
def do_main_page(se lf, arg1, arg2):
some code
I've become really fond of decorators and use them quite a lot. I've
also ready that function calls are expensive in python. In the above
example, does the interpreter call 5 different functions?
Comment