function decorator-like function
vicente.soler at gmail.com
Sat Mar 27 16:24:26 CET 2010
Still learning Python, now decorators.
Before diving deeply into decorators, I'd like to apply a function to
My "extremely simple function" should print number 3, then the sum of
its 2 arguments.
Say that I call f(5,7)
I'd like to get, somehow, 3 then 12.
I've tried the following:
def f(a, b):
However, it does not work. Calling f(5,7) only returns 12, (3 is
How should I proceed?
More information about the Python-list