¡@

Home 

python Programming Glossary: funny_function

Preserving signatures of decorated functions

http://stackoverflow.com/questions/147816/preserving-signatures-of-decorated-functions

return f args kwargs return g @args_as_ints def funny_function x y z 3 Computes x y 2 z return x y 2 z funny_function 3 4.0.. def funny_function x y z 3 Computes x y 2 z return x y 2 z funny_function 3 4.0 z 5 22 Everything well so far. There is one problem however... not retain the documentation of the original function help funny_function Help on function g in module __main__ g args kwargs Fortunately..